Forum Moderators: coopster
$data[1][0]
$data[1][1]
$data[1][2]
I then need to search the array for certain string phrases and then sort by relevance. I need to give more importance to dimension 0 then 1 then 2. I know how to do this in MYSQL but I do not need to keep the data so I do not want to insert the data, then do a fulltext search for the results then dump the data - This will take too much time.
Is there a way to search by relevance using an array?
Perhaps array_keys() [php.net] with the optional search_value parameter specified will work for you.