note 80399 deleted from language.operators by danbrown

From: Date: Fri, 30 Jan 2009 20:39:07 +0000
Subject: note 80399 deleted from language.operators by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149997@lists.php.net to get a copy of this message
Note Submitter: jet-2 at list dot ru ---- janturon at email dot cz wrote about shortening with "or" $a = @$b or $a = 'undefined'; There's no reason to do this, because it generates a notice anyway. A better way to do this is $a = isset($b) ? $b : 'undefined'; Note, that NULL value returns false when you use isset().

« previous php.notes (#149997) next »