note 68595 added to language.oop5.constants

From: Date: Wed, 02 Aug 2006 22:31:20 +0000
Subject: note 68595 added to language.oop5.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-115495@lists.php.net to get a copy of this message
*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 ) ---- Server IP: 66.163.161.117 Probable Submitter: 67.105.193.226 ---- X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, UPPERCASE_25_50 autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.constants.php Edit -- https://master.php.net/note/edit/68595 Del: integrated -- https://master.php.net/note/delete/68595/integrated Del: useless -- https://master.php.net/note/delete/68595/useless Del: bad code -- https://master.php.net/note/delete/68595/bad+code Del: spam -- https://master.php.net/note/delete/68595/spam Del: non-english -- https://master.php.net/note/delete/68595/non-english Del: in docs -- https://master.php.net/note/delete/68595/in+docs Del: other reasons-- https://master.php.net/note/delete/68595 Reject -- https://master.php.net/note/reject/68595 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115495) next »