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
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.
always remember php.net for function other than daniweb and must remember almost all languages have ksort,sort like function to sort the array