note 111437 deleted from language.types.array by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 Mar 2013 18:01:46 +0000 |
| Subject: | note 111437 deleted from language.types.array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193868@lists.php.net to get a copy of this message | ||
Note Submitter: James
----
simple multidimensional array echo out.
<?php
$array_of_people = array( array("Rose", "21", "Farmer"),
array("Daisy", "22" , "programer"),
array("Sarah", "32" , "wizard")
);
$i=0;
while ($i < count($array_of_people)) {
$array_of_person = $array_of_people[$i];
$e=0;
while ($e < count($array_of_person)) {
$print = $array_of_person[$e];
echo"$print<br>";
$e++;
}
echo "<hr>";
$i++;
}
?>