Re: [PHP] What good are constants if you can't use them in an array?

2006-08-03 Thread John Nichel
Daevid Vincent wrote: *sigh* Why is PHP so lame... Because some users are too lazy to RTFM. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] What good are constants if you can't use them in an array?

2006-08-02 Thread Daevid Vincent
*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'

Re: [PHP] What good are constants if you can't use them in an array?

2006-08-02 Thread Robert Cummings
On Wed, 2006-08-02 at 15:24 -0700, Daevid Vincent wrote: *sigh* Why is PHP so lame... Why are you trolling on the PHP list? ?php class PHPISLAME { const STOP = 0; const START = 1; const PAUSE = 2; public static $STATES = array( STOP =

Re: [PHP] What good are constants if you can't use them in an array?

2006-08-02 Thread Jochem Maas
Daevid Vincent wrote: *sigh* Why is PHP so lame... you know the story about the bad workman and his tools? please go and read the manual entry regarding how to reference class constants. ?php class PHPISLAME { const STOP = 0; const START = 1; const PAUSE = 2; public static

Re: [PHP] What good are constants if you can't use them in an array?

2006-08-02 Thread Robert Cummings
On Wed, 2006-08-02 at 18:56 -0400, Robert Cummings wrote: On Wed, 2006-08-02 at 15:24 -0700, Daevid Vincent wrote: *sigh* Why is PHP so lame... Why are you trolling on the PHP list? ?php class PHPISLAME { const STOP = 0; const START = 1; const PAUSE = 2;