Hey,
I want sort an associative array of string.
such as
array(
[hotel]=>array(
[name]='Royal Cabin'
),
[hotel]=>array(
[name]='macdonald court'
))
etc...
what want is to sort the above array to a given string such as 'ro' or 'mac'
wher the array is sorted and show the closet match in the array first, and listing others after that
Please help me on this. Thanks in adnace.