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
How to get no. of rows using MYSQL function?
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
Why many companies are switching their current business language to php?
Can you define an array argument as a reference type?
Write a program in php to reverse a number?
What is the difference between query and question?
What is super keyword in c++?
Can we extend final class in php?
How to call php function from javascript using ajax?
Explain the difference between require() and require_once()?
What is the difference between print() and echo() in PHP?
What is the purpose of constant() function?
How can MYSQL functions be available with PHP?
What is curl php?
What is trim function in php?