MCQs > IT & Programming > PHP > Which will decode a JSON variable $json to an object? $json = '{'abc':1,'def':2,'ghi':3,'jkl':4,'mno':5}';

PHP MCQs

Which of the following will decode a JSON variable $json to an object? $json = '{"abc":1,"def":2,"ghi":3,"jkl":4,"mno":5}'; 

Answer

Correct Answer: $object = json_decode($json,true);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it