Hi does anyone know why my php setup does not understand the no variable.
if(!$variable){
thanks in advance
the no variable
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: the no variable
Moved to PHP Code.
What do you mean "my php setup does not understand" if(!$variable){ ?? What does it do? Or not do?
What do you mean "my php setup does not understand" if(!$variable){ ?? What does it do? Or not do?
(#10850)
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: the no variable
if(!$variable){eron wrote:Hi does anyone know why my php setup does not understand the no variable.
if(!$variable){
thanks in advance
echo "NOT";
}
Will display NOT if $variable = 0, '', false, null or if $variable has not been set. What does $variable contain?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.