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()
πŸ’¬ Discuss
βœ… Correct Answer: (A) json_encode()
Explanation: json_encode() returns the JSON representation of a value.
Explanation by: Mr. Dubey
json_encode() returns the JSON representation of a value.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
92
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate