Find values in an array question
| From: | Boa Constructor | Date: | Thu, 15 May 2003 19:02:56 +0000 |
| Subject: | Find values in an array question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-27784@lists.php.net to get a copy of this message | ||
Hey all, I have added this in to my PHP script:
for($b=0;$b<count($shoppingcartQuantity);$b++)
{
if($quantity!=1)
{
$quantity = array_values($shoppingcartQuantity);
echo "Quantity = $quantity";
}
}
When this is run I get the following echoed out to the browser: Quantity =
Array
What I am trying to do is print out the values stored at each position in
the array, what am I doing wrong........ or right?
Any ideas anyone?
Cheers,
Graeme :)