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

Can php run without apache?

766


How to get no. of rows using MYSQL function?

812


Is php deprecated?

748


How to return ascii value of character in php?

797


How to increase the execution time of a PHP script?

758


What is session and Cokkies . How it works . tell some thing about Session_id()

1757


How can we automatically escape incoming data?

733


List types of array are available in php?

776


How can we encrypt the password using php?

789


What are the benefits of using queries?

786


Why many companies are switching their current business language to php?

887


Is php a framework?

723


What is session data?

749


Whether it is possible to share a single instance of a memcache between multiple php projects?

769


How many types of php frameworks are there?

705