SarkariResultess QA Bank

PHP JSON decode associative array में कैसे करते हैं? में error आए तो solution क्या है?

Other 0 Views Verified
PHP JSON decode associative array में कैसे करते हैं? में error आए तो solution क्या है? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

json_decode_assoc($json);

json_decode_assoc($json);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

json_decode($json, true);

json_decode($json, true);
Additional Explanation
Second argument true JSON objects को associative arrays में decode करता है। पहले exact error message, line number और input value check करें।
Verified

json_parse($json,array);

json_parse($json,array);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

decode_json($json,true);

decode_json($json,true);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।