# Feature Request: array declaration

- Thread: https://externals.io/message/3605
- Original archive: https://news-web.php.net/php.internals/3605
- Started by walt boring on 2003-07-25T20:38:26+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3605 — walt boring — 2003-07-25T20:38:26+00:00

URL: https://externals.io/message/3605#3605

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
