How to differentiate isset and empty

Answer Posted / techytech

0, "0",
NULL, FALSE and empty string,

for this value empty() will return TRUE

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain which cryptographic extension provide generation and verification of digital signatures?

532


How we can get the number of elements in an array?

8407


Does empty check for null?

546


Explain what does the expression exception::__tostring means?

496


How to block direct directory access in PHP?

562






Where do I run php code?

531


What type of comments are supported by PHP.

564


Explain preg_Match and preg_replace?

553


What is the correct php command to use to catch any error messages within the code?

579


When to use self over $this?

557


What is a static method php?

516


What is the special meaning of __sleep and __wakeup?

573


How to make database connection in php?

539


What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?

509


What is urlencode and urldecode in php?

578