A

Admin • 833.24K Points
Coach

Q. What is the output of print_r([1, 2, 3], true);?

  • (A) Returns array as string
  • (B) Prints array
  • (C) Error
  • (D) null
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

When second parameter is true, print_r returns output instead of printing.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.