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
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]
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
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
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
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
'-- '