- What is the purpose of
!$in PHP? - What is the difference between
issetandempty?
Asked
Active
Viewed 92 times
1 Answers
0
!$meansNOTthus if(!$a)and$a == TRUEthen it isNOT TRUE
Reference: http://www.php.net/manual/en/language.operators.logical.phpISSETreturnsTRUEif the variable exists and has a value other thanNULL
EMPTYchecks 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