Re: simpler syntax for arrays
| From: | Christian Schneider | Date: | Thu, 18 Dec 2008 11:20:04 +0000 |
| Subject: | Re: simpler syntax for arrays | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42324@lists.php.net to get a copy of this message | ||
jay wrote:
> okey. another syntax:
> myfunc($('key1'=>'val1', 'key2'=>'val2', ...));
This has been discussed and rejected several times.
If you still want to be able to use this syntax you can use my patch at
http://cschneid.com/php/
including a script to convert from and to this syntax.
We use this in our production environment so the patch will be updated
for future PHP versions ;-)
If you want to use it in an environment where you cannot patch PHP you
could use our toolkit which provides an auto_prepend file with
just-in-time translation from new to old syntax.
See: http://itools.search.ch/
Regards,
- Chris