At 6:46 PM -0400 4/7/10, Ryan Sun wrote:
rsort(array_combine(array2, array1));

you should expect array(
  'Personal Email' => 75,
  'USPS mail' => 40,
  'Personal Phone' => 31,
  'Web site' => 31,
  'Text Message' => 31

logically, the items are your key but not the count of votes

Logically, combine_array() will work to combine the two arrays as you said, as shown here:

I've tried rsort(), but is does not solve the problem presented, which was to sort the items depending upon their values.

Thus far, my solution is the only one that works.




PHP General Mailing List (
To unsubscribe, visit:

Reply via email to