A

Admin • 832.27K Points
Coach

Q. Which PHP function converts an array or object into JSON?

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

Explanation by: Admin

json_encode() converts PHP data to JSON.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.