Feature Request: array declaration

From: Date: Fri, 25 Jul 2003 20:38:26 +0000
Subject: Feature Request: array declaration
Groups: php.internals 
Request: Send a blank email to internals+get-3605@lists.php.net to get a copy of this message
Howdy, I hope this isn't too late in the game for PHP5, but I thought I'd throw out a request for a feature for array() declaration. I'd like to be able to be lazy and declare something like $foo = array('A' <=> 'Admin', 'C' <=> 'Customer'); which is really just a shortcut way to declare $foo = array('A' => 'Admin', 'Admin' => 'A',
                     'C' => 'Customer', 'Customer' => 'C');
Dunno if anyone else would find this usefull, but it'd be nice to have as a quick way to declare a simple lookup array. Walt

« previous php.internals (#3605) next »