Re: Syntactic improvement to array
| From: | Pierre | Date: | Sun, 04 Feb 2007 15:24:20 +0000 |
| Subject: | Re: Syntactic improvement to array | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27743@lists.php.net to get a copy of this message | ||
On 2/4/07, Hannes Magnusson <hannes.magnusson@gmail.com> wrote:
Hi Andi function typeHinted([] $array = []) { // type hint array, default to empty oneThat's a wrong example. Type hinting should still rely on the literal name: function typeHinted(Array $myarray=[]) --Pierre