note 51688 added to language.variables

From: Date: Thu, 07 Apr 2005 16:18:46 +0000
Subject: note 51688 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-87664@lists.php.net to get a copy of this message
In addition to what jospape at hotmail dot com and ringo78 at xs4all dot nl wrote, here's the sintax for arrays: <?php //considering 2 arrays $foo1 = array ("a", "b", "c"); $foo2 = array ("d", "e", "f"); //and 2 variables that hold integers $num = 1; $cell = 2; echo ${foo.$num}[$cell]; // outputs "c" $num = 2; $cell = 0; echo ${foo.$num}[$cell]; // outputs "d" ?> ---- Manual Page -- http://www.php.net/manual/en/language.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51688 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51688&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51688&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51688&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51688&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51688&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51688&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87664) next »