Quote:
Originally Posted by JJR512
Using the last example, the !inarray bit, if I have an existing IF statement to check the value of $e, can I combine that with this?
This is what I use already:
Code:
if ($e == '' OR !$e)
{
$e = '404';
}
Can I make the IF statement like this...
Code:
if ($e == '' OR !$e OR !inarray($e,$error))
Assuming I've created the array before the IF statement (of course), will that work?
|
the if staement should be like
PHP Code:
if (!(in_array($e,$error)) || $e =='')
or for better
PHP Code:
if (!in_array($e,$error) || !isset($e))