SarkariResultess QA Bank

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

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

Answer & Explanation

4 Answers
Verified Correct Answer

json_encode($data, JSON_PRETTY_PRINT);

json_encode($data, JSON_PRETTY_PRINT);
Additional Explanation
JSON_PRETTY_PRINT readable formatted JSON देता है। पहले exact error message, line number और input value check करें।
Verified

json_encode($data, PRETTY);

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

json.pretty($data);

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

json_encode_pretty($data);

json_encode_pretty($data);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।