multy dimensional array help
| From: | Nikola Veber | Date: | Sun, 07 Oct 2001 05:45:17 +0000 |
| Subject: | multy dimensional array help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70290@lists.php.net to get a copy of this message | ||
Hi !
I couldn't find this in the manual ...
I have an array whitch looks like this:
$a = array(
"letters" => array("a", "b", "c", "d"),
"numbers" => array(1, 2, 3, 4),
"words" => array("blue", "horse", "zebra")
);
Is it possible to do smth like this:
echo $a["letters"[2]];
instead of making a variable
$b = $a["letters"];
echo $b[2];
thanks
Nikola