mulit dimensional array

From: Date: Mon, 26 Nov 2001 05:19:46 +0000
Subject: mulit dimensional array
Groups: php.windows 
Request: Send a blank email to php-windows+get-10607@lists.php.net to get a copy of this message
i have set up an array like this... <? $myCart = "myShopping Cart"; $$myCart = array("items"=> array(),"qty"=> array()); ?> i am inserting an entry by: <? $$myCart["items"][] = $item1; $$myCart["qty"][] = $qty1; ?> but i am getting an error of an undefined variable 'm' of which the first letter of $$myCart... how can i insert an entry to this kind of array? pls help. thanks..

« previous php.windows (#10607) next »