RE: [PHP] Syntax ::: does explode('-', $string)[2] ::: have a twi n brother?
| From: | Maxim Maletsky | Date: | Tue, 19 Dec 2000 09:53:31 +0000 |
| Subject: | RE: [PHP] Syntax ::: does explode('-', $string)[2] ::: have a twi n brother? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-31013@lists.php.net to get a copy of this message | ||
Yeah, I guess this is the 'shortest' way of it..
Cheers!
Maxim Maletsky
-----Original Message-----
From: Kristoffer Skjutare [mailto:chakotay@nyamedier.com]
Sent: Tuesday, December 19, 2000 6:51 PM
To: Maxim Maletsky; PHP-General
Subject: RE: [PHP] Syntax ::: does explode('-', $string)[2] ::: have a
twin brother?
...
> Here's a different approach:
> list ( $hell , $hell , $to ) = explode ( '-' , $string );
>
Way not just shorten it to
list (,, $to ) = explode ( '-' , $string );
Best Regards
Kristoffer Skjutare
Developer
Medstroms Dataforlag AB