note 8851 deleted from array_keys by jmoore

From: Date: Mon, 02 Oct 2000 02:21:38 +0000
Subject: note 8851 deleted from array_keys by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-5810@lists.php.net to get a copy of this message
The following does not work... echo array_keys($anArray)[0]; Although it would be very clean and convenient if that didn't generate a syntax error, it is necessary to do something like... $keys=array_keys($anArray); echo $keys[0]; -Jose Batista

« previous php.notes (#5810) next »