Re: if ($blah) clauses

From: Date: Sat, 08 Jul 2000 21:13:52 +0000
Subject: Re: if ($blah) clauses
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5566@lists.php.net to get a copy of this message
like this one?? <? if (!$blah) { echo "null baby.. the value null"; } else { echo "damn we got $blah"; } ?> try execute with script.php or script.php?blah=whatever ----------- At 21:50 08/07/00 +0100, you wrote:
Bonjourno! A question - easiest one you'll have seen all day! if ($blah) { do something; } Thats fine. If $blah doesn't have a null value, it executes. But how do I say, if $blah DOESN'T have a value, then execute? i.e. something like if (!=$blah) { do something; } . I am not interested in if ($blah == '') or something like that - I'd like a 'neat' way of doing it! :o) Cheers, Emile -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- Doubt whom you will, but never yourself. http://php.klik.or.id

« previous php.general (#5566) next »