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

How to track no of user logged in?

635


Is laravel better than codeigniter?

553


Is PHP an open source software?

582


Is python easier than php?

547


What should be the length of variable for SHA256?

533






What is prepared statement in php?

590


Explain setcookie() function in php?

566


What is the use of mysqli_real_escape_string() function?

521


Why use php artisan serve?

503


Which is best framework for php?

563


What is php and what does it do?

546


How to do single and multi line comment in php?

560


Do I need to install php after xampp?

539


how to track user logged out or not? when a user is idle?

531


What are the two types of variables?

530