[PHP-DEV] Perl-Like Pre-Destined Array Designation

2002-10-23 Thread Adam Voigt
Ok, the other day a friend of mine showed me where you could address a position in an array in perl, before you even had the array returned. Essentially it would be this in php: echo explode(,,$somearray)[0]; Which would give you the first position of what was returned from the explode function

Re: [PHP-DEV] Perl-Like Pre-Destined Array Designation

2002-10-23 Thread Maxim Maletsky
Would be very nice to have since PHP v5. Guys? --- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 Adam Voigt [EMAIL PROTECTED]

Re: [PHP-DEV] Perl-Like Pre-Destined Array Designation

2002-10-23 Thread Gareth Ardron
At 15:10 23/10/2002 +0200, Maxim Maletsky wrote: Would be very nice to have since PHP v5. Guys? echo explode(,,$somearray)[0]; I would love to see it happen. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Perl-Like Pre-Destined Array Designation

2002-10-23 Thread Zeev Suraski
We're not planning to add it at this time. Zeev At 14:42 23/10/2002, Adam Voigt wrote: Ok, the other day a friend of mine showed me where you could address a position in an array in perl, before you even had the array returned. Essentially it would be this in php: echo

Re: [PHP-DEV] Perl-Like Pre-Destined Array Designation

2002-10-23 Thread Maxim Maletsky
BTW, are there any plans working on PHP parser for release 5? --- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 Zeev Suraski

Re: [PHP-DEV] Perl-Like Pre-Destined Array Designation

2002-10-23 Thread Markus Fischer
On Wed, Oct 23, 2002 at 04:13:03PM +0200, Maxim Maletsky wrote : BTW, are there any plans working on PHP parser for release 5? This is already done, see the [EMAIL PROTECTED] . --- Maxim Maletsky [EMAIL PROTECTED] Please use a proper signature separator. A proper one is '-- '