note 24701 added to faq
| From: | lamoreira at bes dot pt | Date: | Mon, 26 Aug 2002 11:08:50 +0000 |
| Subject: | note 24701 added to faq | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35655@lists.php.net to get a copy of this message | ||
MULTI-DIMENSIONAL ARRAYS
Try this.
It DOES work
$machines = array(
"PC1"=>array("OS" => "Windows 2000","Disk" =>
"40GB"),
"PC2"=>array("OS" => "Windows XP","Disk" =>
"20GB"),
"PC3"=>array("OS" => "Linux","Disk" =>
"80GB")
);
echo "PC 1 {$machines["PC1"]["OS"]}
{$machines["PC1"]["Disk"]} <br> ";
echo "PC 2 {$machines["PC2"]["OS"]}
{$machines["PC1"]["Disk"]} <br>";
echo "PC 3 {$machines["PC3"]["OS"]}
{$machines["PC1"]["Disk"]} <br>";
--
http://www.php.net/manual/en/faq.php
http://master.php.net/manage/user-notes.php?action=edit+24701
http://master.php.net/manage/user-notes.php?action=delete+24701
http://master.php.net/manage/user-notes.php?action=reject+24701