Re: Change Array Data
| From: | Richard Lynch | Date: | Thu, 11 Jan 2001 23:08:28 +0000 |
| Subject: | Re: Change Array Data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34136@lists.php.net to get a copy of this message | ||
$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 <lohmeyer@gmx.de>
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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>