How to sort the array in PHP?
Posted
by vinothkumar
on Stack Overflow
See other posts from Stack Overflow
or by vinothkumar
Published on 2010-04-13T07:18:18Z
Indexed on
2010/04/13
7:22 UTC
Read the original article
Hit count: 321
php5
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.
© Stack Overflow or respective owner