Re: isset opposite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi there.. I am pretty new to PHP, and I am familiar with php "isset"
> option.... now i was wondering.... (I have looked at the PHP site - but
> can not find it) how can you check if something is not set? I need to
> test if a $_GET is not set (not just empty).
>
> thanks in advance!
>
> d
>


I'm sure I'll be one of the many who says this:

!isset

The ! means not. You can use it with most of the functions like !empty
(not empty).

So you can use it like so:

if (!isset($_GET["var"])) {
  do stuff
}

-- 
--Matthew Sims
--<http://killermookie.org>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux