Hey Internals
I've been wondering for quite some time why PHP doesn't allow you to access
arrays when you assign it to a value like in Javascript:
function ArrayTest(Array $range)
{
return($range);
}
$range = Array(1337 => Array('Hello World'));
echo ArrayTest($range)[1337};
I would
On Fri, 2008-04-18 at 10:40 -0700, Kalle Sommer Nielsen wrote:
> Hey Internals
>
> I've been wondering for quite some time why PHP doesn't allow you to access
> arrays when you assign it to a value like in Javascript:
>
> function ArrayTest(Array $range)
> {
> return($range);
> }
>
> $rang
2008/4/18, Sam Barrow <[EMAIL PROTECTED]>:
>
> On Fri, 2008-04-18 at 10:40 -0700, Kalle Sommer Nielsen wrote:
> > Hey Internals
> >
> > I've been wondering for quite some time why PHP doesn't allow you to
> access
> > arrays when you assign it to a value like in Javascript:
> >
> > function ArrayTe
Hi Arvids
Quoting Arvids Godjuks <[EMAIL PROTECTED]>:
2008/4/18, Sam Barrow <[EMAIL PROTECTED]>:
On Fri, 2008-04-18 at 10:40 -0700, Kalle Sommer Nielsen wrote:
> Hey Internals
>
> I've been wondering for quite some time why PHP doesn't allow you to
access
> arrays when you assign it to a valu
On Saturday 19 April 2008, Kalle Sommer Nielsen wrote:
> Hi Arvids
>
> Quoting Arvids Godjuks <[EMAIL PROTECTED]>:
> > 2008/4/18, Sam Barrow <[EMAIL PROTECTED]>:
> >> On Fri, 2008-04-18 at 10:40 -0700, Kalle Sommer Nielsen wrote:
> >> > Hey Internals
> >> >
> >> > I've been wondering for quite some
On Fri, Apr 18, 2008 at 10:40 AM, Kalle Sommer Nielsen <[EMAIL PROTECTED]>
wrote:
> Hey Internals
>
> I've been wondering for quite some time why PHP doesn't allow you to
> access
> arrays when you assign it to a value like in Javascript:
My opinion on features such as this is that they provide
Kalle Sommer Nielsen:
> Hey Internals
>
> I've been wondering for quite some time why PHP doesn't allow you
> to access arrays when you assign it to a value like in Javascript:
In many languages you get such functionality for free, because their
parsers are written to accept:
expression '['