A

Admin • 833.24K Points
Coach

Q. Which function is used to convert an array to a JSON string?

  • (A) json_encode()
  • (B) array_to_json()
  • (C) encode_json()
  • (D) serialize()
  • Correct Answer - Option(A)
  • Views: 46
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

json_encode() returns the JSON representation of a value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.