Re: isset opposite

From: Date: Wed, 17 Nov 2004 00:05:23 +0000
Subject: Re: isset opposite
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202247@lists.php.net to get a copy of this message
> 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>

« previous php.general (#202247) next »