How to differentiate isset and empty

Answer Posted / p .g .senthilkumar

isset -> this variable handling functions determine whether
a variable is set . It checks whether a variable is set
even though it is empty.

empty -> as the term itself has already given a sign that
it would related to something that's empty, this variable
handling functions determine whether a variable is empty.
It checks whether a variable has a value whether it's empty
string, zero(0), or not set at all.

Is This Answer Correct ?    36 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between $message vs. $$Message in php.

777


Is multiple inheritance supported in php?

767


Can I use php in visual studio?

735


Do while loops?

725


discuss the issue of software theft in ghana and how it has affected the economy

1887


What is foreach loop in php?

751


How do you identify independent and dependent variables in research?

701


How long does a session last in php?

698


How can we know the total number of elements of Array?

802


What is difference between array_merge and array_combine in php?

721


What are regular expressions in programming?

667


Is python better than php?

726


How can I embed a java program in php file and what changes have to be done in php.ini file?

720


How can cross site request forgery csrf be prevented?

700


What is the difference between $name and $$name?

739