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
Is gender a dependent variable?
How to remove the new line character from the end of a text line in php?
Is laravel frontend or backend?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What do the initials of php stand for?
What are the encryption techniques in php?
which will print out the php call stack?
What is reference variable php?
How do I end a php session?
When to use get and post request?
What are the string functions in php?
Which php framework is best for security?
What is php destruct?
What is asort php?
Can php run on windows server?