note 27179 added to language.constants

From: Date: Tue, 26 Nov 2002 09:01:26 +0000
Subject: note 27179 added to language.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-39986@lists.php.net to get a copy of this message
I got some weird behavior when initializing variables with constants. For some reason the following code works perfectly: $status |= STAGEONE; $status &= EMPTY; where both constants are integers. But I can't seem to do this: $status = EMPTY; I found a way around it: $status = constant ('EMPTY'); but I wonder why this is so... -- http://www.php.net/manual/en/language.constants.php http://master.php.net/manage/user-notes.php?action=edit+27179 http://master.php.net/manage/user-notes.php?action=delete+27179 http://master.php.net/manage/user-notes.php?action=reject+27179

« previous php.notes (#39986) next »