php sort multidimensional array by two value
firstsearching through the first two comments for that page shows: http://us2. php.net/manual/en/function.sort.php When dealing with arrays in PHP, you can print the keys and values out like thismanimaran. I have one multidimensional array and another array.
30.I have a multidimensional array, that I need to sort after a given value (given from outside the array). Creating High Value Technology Solutions Delivering Reliable Services.Posted on January 23, 2013 by Kumar Arbind. usort is the best way : Before PHP 5.3 : function sortByOrder(a, b) return a[order] - b[order] usort(myArray, sortByOrder) for PHP 5.3 : usort(myArray, function(a, b) Id like to sort the array based on one of the values in the field href, description, or time.Related Discussions. Error Opening file. Re: [PHP-DEV] PHP scalability problem. SESSION and include. Need help getting information from external xml document.