A

Admin • 833K Points
Coach

Q. What does the PHP function json_encode() do?

  • (A) Converts a PHP variable into JSON format
  • (B) Parses JSON string into PHP variable
  • (C) Encodes a string in base64
  • (D) Decodes a base64 string
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

json_encode() converts PHP arrays or objects to JSON strings.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.