note 68595 deleted from language.oop5.constants by sean

From: Date: Wed, 02 Aug 2006 23:30:18 +0000
Subject: note 68595 deleted from language.oop5.constants by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115496@lists.php.net to get a copy of this message
Note Submitter: daevid at daevid dot com Reason: useless ---- *sigh* Why is PHP so lame... <?php class PHPISLAME { const STOP = 0; const START = 1; const PAUSE = 2; public static $STATES = array( STOP => 'Stopped', START => 'Started', PAUSE => 'Paused' ); public static $STATESHACK = array( 0 => 'Stopped', 1 => 'Started', 2 => 'Paused' ); } print_r(PHPISLAME::$STATES); print_r(PHPISLAME::$STATESHACK); ?> Array ( [STOP] => Stopped [START] => Started [PAUSE] => Paused ) Array ( [0] => Stopped [1] => Started [2] => Paused )

« previous php.notes (#115496) next »