I am trying to sort 3 arrays. I have one array with a search term from google, the second with the number of visitors from that search term, and the third with the exact URL of the search term on google.
array1 = visitors
array2 = search term (e.g. "php help")
array3 = url (e.g. http://www.google.com.au/search?q=php+help&ie=ISO-8859-1&hl=en&btnG=Google+Search&meta=)
I want to sort the arrays by the highest number of vistors, and keep the URL matching up with the right search term.
I have tried countless variations of this:
array_multisort($this->search_term_visits, SORT_DESC, $this->search_term_urllink, SORT_DESC, $this->search_term, SORT_DESC);
but no luck... please help!