RE: [PHP] How do I make an array like this?
| From: | Hans H. Anderson | Date: | Wed, 12 Jul 2000 03:40:18 +0000 |
| Subject: | RE: [PHP] How do I make an array like this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6061@lists.php.net to get a copy of this message | ||
> List($key, $cost, $thickness) = split(",", $Lines[$i]);
> Print $key." ".$cost." ".$thickness."<br>"; //Works OK!
> $WallCab[$Key] = array($cost, $thickness);
> }
> $Key = "Mel341";
> //Print "<br>A ".$WallCab[$Key]."<br>"; //Does not work
> Print "<br>B ".$WallCab[$Key][$cost]."<br>"; //Does not work
$Key != $key
Hans Anderson ~ me@hansanderson.com
PO Box 426, Missoula, MT 59806 | PHP, Search Engines, SQL
(800)397-9116 / (406)549-6524 | Databases, Flash Multimedia,
http://www.hansanderson.com | Killer Audio Production,
http://www.goofiness.com | Minty Fresh Breath.