πŸ“Š PHP
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

πŸ‘οΈ
73
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate