if not statement code.


i m looking for a if not statement code.

is this an if not statement:

if!()
{
}

try this code

Code:

if(!file_exists("foobar"))
{
        mkdir("foobar");
}
Just move the ! inside the parentheses, like this
Code:
if(!)
{
}

use it

Code:

if (!isset($var)) { }

or

if (empty($var)) {}

or

if (!something) {}

yes ! shuld be infront and in parentheses. like
 
 
 if(!$var)
 
 {
 
 do something
 
 }