Hi,
I have an array with an html link as key and different $vars as val:
$list = array (
'a href=http://someplace.com/;some place/a' = $vendor1_total,
'a href=http://anotherplace.com/;another place/a' = $vendor2__total,
[snip] etc..
some vals are numeric and some vals are n/a
asort works to
array_push() and array_unshift(). Search the manual for more information.
Hope that helps.
- Kevin
- Original Message -
From: Jim Long [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 11:35 AM
Subject: [PHP] restating plea for help with sort
Hi,
I have an array
: Thursday, February 27, 2003 12:04 PM
Subject: Re: [PHP] restating plea for help with sort
Hmm well upon first glance looks like all you need to do is loop that
array
and start a new array within the loop. An If/Else construct checks If the
value is n/a then append to the back of the new array Else
or use
array_push() and array_unshift(). Search the manual for more information.
Hope that helps.
- Kevin
- Original Message -
From: Jim Long [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 11:35 AM
Subject: [PHP] restating plea for help with sort
Hi,
I have
4 matches
Mail list logo