Re: [PHP-DEV] Array access on function returns

2008-04-19 Thread Arvids Godjuks
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 ArrayTest(Array $range)

Re: [PHP-DEV] Array access on function returns

2008-04-19 Thread Kalle Sommer Nielsen
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 value like

Re: [PHP-DEV] Array access on function returns

2008-04-19 Thread Larry Garfield
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 time why PHP doesn't

Re: [PHP-DEV] Array access on function returns

2008-04-19 Thread Mike Lively
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 too

[PHP-DEV] Array access on function returns

2008-04-18 Thread 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: function ArrayTest(Array $range) { return($range); } $range = Array(1337 = Array('Hello World')); echo ArrayTest($range)[1337}; I would

Re: [PHP-DEV] Array access on function returns

2008-04-18 Thread Sam Barrow
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); } $range =