SarkariResultess QA Bank

PHP variable set है और null नहीं है या नहीं check करने के लिए क्या उपयोगी है? production project में safely कैसे use करें?

Other 0 Views Verified
PHP variable set है और null नहीं है या नहीं check करने के लिए क्या उपयोगी है? production project में safely कैसे use करें? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

has_value($value)

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

exists($value)

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

isset($value)

isset($value)
Additional Explanation
isset() checks variable exists and is not null। Production में logging और safe error handling रखें।
Verified

defined($value)

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