A

Admin • 825.56K Points
Coach

Q. What will print_r(array('a'=>1, 'b'=>2)); output?

  • (A) Array ( [a] => 1 [b] => 2 )
  • (B) array('a'=>1, 'b'=>2)
  • (C) 1 2
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
print_r outputs the array structure in a readable format.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.