Perl style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys

I would like to convert this ..


$tmparray = split(',', $csvstring);
$element5 = $tmparray[5];


. to something like this:


$element5 = (split(',', $csvstring))[5];


. but I just can't find the correct syntax. It is Perl style - i know, but I
just love this syntax. :-)

Does anyonw know the correct syntax?


-- 
Regards Søren Schimkat
www.schimkat.dk

---------------------------------------
www.dyrenes-venner.dk/densorteliste.asp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux