Brian A. Anderson wrote:
RTFM
arsort()
Ok, so I use asort(), and I don't get the result I wanted. Instead I get the
script telling me my foreach loop is wrong on the second test round, as if
it did something other than simply sort the array. It seems that I can't
access the array now?
$nar = arra
> RTFM
> arsort()
Ok, so I use asort(), and I don't get the result I wanted. Instead I get the
script telling me my foreach loop is wrong on the second test round, as if
it did something other than simply sort the array. It seems that I can't
access the array now?
$nar = array('lma-bg51' => 1,
Brian A. Anderson wrote:
Say I create a "matches" array from a set of SQL queries With each query,
an entry is added to my matches array. If the name already exists, its value
gets incremented. How can I sort the array based on the highest number of
hits?
What is the sort method? Say this is the ar
3 matches
Mail list logo