A

Admin • 832.27K Points
Coach

Q. Which statement is used to create a constant array in PHP?

  • (A) define() with array
  • (B) const with array
  • (C) use array_constant()
  • (D) PHP does not support constant arrays
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

Starting from PHP 5.6, const can define constant arrays.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.