note 51688 deleted from language.variables by googleguy
| From: | googleguy@php.net | Date: | Mon, 11 Feb 2013 05:18:57 +0000 |
| Subject: | note 51688 deleted from language.variables by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193594@lists.php.net to get a copy of this message | ||
Note Submitter: mike at go dot online dot pt
----
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"
?>