isset()
checks if a variable has a value including ( False , 0 , or empty string)
, but not NULL
. Returns TRUE
if variable exists otherwise returns FALSE
.
On the other hand the empty()
function checks if the variable has an empty value, empty string , 0, NULL ,or False
. Returns FALSE
if variable has a non-empty
and non-zero
value.
For details have a look here