From: ShortStay [EMAIL PROTECTED]
How do you delete a value and key from an array? I know the value.
You need to know the key.
unset($Array[$key]);
There are various array functions that'll find the key for you if you know
the value.
Is it OK to post array questions to the db list?
Not
CartArray['itemid'] = $itemid;
note
where $qty = CartArray['qty'];
/note
Gary Every
Sr. UNIX Administrator
Ingram Entertainment
(615) 287-4876
Pay It Forward
mailto:[EMAIL PROTECTED]
http://accessingram.com
-Original Message-
From: Boa Constructor [mailto:[EMAIL PROTECTED]
Sent:
: [EMAIL PROTECTED]
To: [EMAIL PROTECTED] ; [EMAIL PROTECTED]
Sent: Monday, June 02, 2003 8:30 PM
Subject: RE: [PHP-DB] Array Question
CartArray['itemid'] = $itemid;
note
where $qty = CartArray['qty'];
/note
Gary Every
Sr. UNIX Administrator
Ingram Entertainment
(615
Hello everyone. If I wanted to pass a item ID along with a quantity to an
associative array called CartArray how would I pass it to the PHP
script?
I'll get this shopping cart working yet !!
If the question is how do you pass an array to another PHP page, you
serialize() and urlencode() it,
to precise:
$array = Array('name'='Maxim', 'surname'='Maletsky');
unset($array['name']);
// now array has this structure:
// Array('surname'='Maletsky')
--
Maxim Maletsky
[EMAIL PROTECTED]
Jason Wong [EMAIL PROTECTED] wrote... :
On Friday 08 November 2002 17:25, nikos wrote:
Does