SarkariResultess QA Bank

PHP variable set है और null नहीं है या नहीं check करने के लिए क्या उपयोगी है? की PHP best practice क्या है?

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

Answer & Explanation

4 Answers
Verified

exists($value)

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

has_value($value)

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

isset($value)

isset($value)
Additional Explanation
isset() checks variable exists and is not null।
Verified

defined($value)

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