SarkariResultess QA Bank

PHP JSON error code कैसे check करते हैं? को secure तरीके से कैसे implement करें?

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

Answer & Explanation

4 Answers
Verified

json_decode_error()

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

json_last_error()

json_last_error()
Additional Explanation
json_last_error() last JSON error code देता है। User input को trust न करें; validation, escaping और prepared statements context के अनुसार उपयोग करें।
Verified

last_json_error_code()

last_json_error_code()
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

json_error()

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