note 58963 rejected from function.array by dmytton

From: Date: Tue, 22 Nov 2005 14:17:13 +0000
Subject: note 58963 rejected from function.array by dmytton
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98928@lists.php.net to get a copy of this message
Note Submitter: puhaha1004 at hotmail dot com ---- The following diagram is what I got as an output. However, I want to have an output, "VS100045", how would you do? any clue??? Array ( [cart] => Cart Object ( [items] => Array ( [VS100045] => Array ( [quantity] => 1 [category_id] => ) ) [total] => 12.95 [discount] => 0 ) [shipping_methods] => ) foreach ($this->items as $product_id) { // echo array_keys($this->items); // echo $this->items[trim($product_id)]; // echo $this->items["product_id"]; -> gives me nothing~!!! // echo $this->items[$product_id]; -> gives me an error~!!! // echo $this->trim(items[$product_id]); -> gives me an error~!!! if(!in_array($product_id, $no_shipping_fee_items)) { echo.... } } I've tried many things around, but no clue....

« previous php.notes (#98928) next »