Re: testing a variable

From: Date: Wed, 12 Nov 2003 17:15:03 +0000
Subject: Re: testing a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169310@lists.php.net to get a copy of this message
--- Adam Williams <awilliam@mdah.state.ms.us> wrote: > I need to test a variable to see if it contains a value or not, and if > not, do something. My php is a little rusty, so which would be better? This is a good page for understanding how things like isset(), is_null(), and empty() work: http://www.blueshoes.org/en/developer/php_cheat_sheet Hope that helps. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#169310) next »