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
Does php 7 support multiple inheritance?
What is namespace and use in php?
What is ci in php?
How to pass variables and data from php to javascript?
What is a static variable in php?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
How to create and destroy cookies in php?
What is preg_match?
What is php and how do you use it?
What is good average session duration?
Explain the importance of the function htmlentities.
How do you check if an arraylist is empty?
How to create a session? How to remove data from a session?
How do I start a php session?
How does php sessions work?