Hi i have created a search script which returns 2 arrays like below
matches filename
----------------------------
312 a.php
25 j.php
2 g.php
i need to sort the filename array by the matches ascending
hope you understand
Printable View
Hi i have created a search script which returns 2 arrays like below
matches filename
----------------------------
312 a.php
25 j.php
2 g.php
i need to sort the filename array by the matches ascending
hope you understand
Make the file name the array index for each roww, that way you only need one array. Then you can use the sort() function to sort it.