Re: $arr = array('Hello', 'world'); $arr();
| From: | Stas Malyshev | Date: | Sun, 05 Jun 2011 19:49:55 +0000 |
| Subject: | Re: $arr = array('Hello', 'world'); $arr(); | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52958@lists.php.net to get a copy of this message | ||
Hi!
So, I wrote a patch [2] that allow such behavior to be consistent with arrays. See some examples:Looks good. Only question I have is that we seem to have that code (calling a function based on variable) in two places instead of one, I wonder if it's necessary and if we could unify them... -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227