Perl style

From: Date: Wed, 26 Oct 2005 12:14:23 +0000
Subject: Perl style
Groups: php.general 
Request: Send a blank email to php-general+get-224672@lists.php.net to get a copy of this message
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

« previous php.general (#224672) next »