note 24667 added to function.current

From: Date: Sun, 25 Aug 2002 01:40:34 +0000
Subject: note 24667 added to function.current
Groups: php.notes 
Request: Send a blank email to php-notes+get-35563@lists.php.net to get a copy of this message
multidimensional array access ============================= $test = array( colors => array("blue", "green"), numbers => array("one", "two") ); not working: ============= echo current($test)[0]; working ======= 1: echo current(current($test)); 2: echo $test[colors][0]; 3: echo current($test["numbers"]); 4: $cur = current($test); echo $cur[0]; I tried the staff with those braces current($test){[0]}; {current($test)[0]}; {current($test)}[0]; {current($test)}[0]; but this seems not to work... -- http://www.php.net/manual/en/function.current.php http://master.php.net/manage/user-notes.php?action=edit+24667 http://master.php.net/manage/user-notes.php?action=delete+24667 http://master.php.net/manage/user-notes.php?action=reject+24667

« previous php.notes (#35563) next »