How to sort the array in PHP?
- by vinothkumar
I have an array look like below.
$array[0]['keyword'] = 'cricket ';
$array[0]['noofhits'] = '26';
$array[0]['keyword'] = 'food ';
$array[0]['noofhits'] = '17';
$array[0]['keyword'] = 'mypax';
$array[0]['noofhits'] = '22';
$array[0]['keyword'] = 'next';
$array[0]['noofhits'] = '22';
$array[0]['keyword'] = 'nextbutton';
$array[0]['noofhits'] = '22';
$array[0]['keyword'] = 'picture';
$array[0]['noofhits'] = '18';
I want to sort the array using the noofhits.How can I do?Advance Thanks for your advice.