$cart['product17'] = 42; #order lots of these.
unset($cart['product4']; # Don't need any of those.

You probably should re-read the first section of the PHP Manual at
http://php.net/manual

A lot of the basics like this are in there to get you going strong.

----- Original Message -----
From: Kersten Lohmeyer <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Thursday, January 11, 2001 1:08 AM
Subject: [PHP] Change Array Data


> Hi,
>
> I'm new to PHP so I thought someone could give me some advice on this one:
>
> I'm creating a shopping cart, which is nothing but an array within a
> session variable. Adding products to my cart works fine. But now I want to
be
> able to change certain fields in my already filled array, e.g. the amount
of
> one article or maybe delete one entire recordset. Is this possible? I have
PHP
> 4.0.4 installed on my system running apache.
>
> Thanks
>
> Kersten
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to