- What is the purpose of
!$in PHP? - What is the difference between
issetandempty?
Asked
Active
Viewed 87 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
Ronald
- 1,287
- 3
- 17
- 27