- What is the purpose of
!$
in PHP? - What is the difference between
isset
andempty
?
Asked
Active
Viewed 92 times
1 Answers
0
!$
meansNOT
thus if(!$a)
and$a == TRUE
then it isNOT TRUE
Reference: http://www.php.net/manual/en/language.operators.logical.phpISSET
returnsTRUE
if the variable exists and has a value other thanNULL
EMPTY
checks to see if a variable is empty.
Reference: http://php.net/manual/en/function.isset.php http://php.net/manual/en/function.empty.php

Rav
- 1,327
- 3
- 18
- 32