smoothcat11
asked on
PHP Multisort Function
How would I sort this array if I wanted the records with the YEAR_BUILT Sorted Numerically
I would basically like the same sort function as ORDER BY in SQL
Eg:
$property[DETAILS][0][YEAR _BUILT]
$property[DETAILS][0][VALU E]
$property[DETAILS][1][YEAR _BUILT]
$property[DETAILS][1][VALU E]
$property[DETAILS][2][YEAR _BUILT]
$property[DETAILS][2][VALU E]
Is there a way to do this:
array_multisort($property[ DETAILS][? ??][YEAR_B UILT],SORT _NUMERIC,$ property);
Notice where the question marks are... Thanks for your time.
I would basically like the same sort function as ORDER BY in SQL
Eg:
$property[DETAILS][0][YEAR
$property[DETAILS][0][VALU
$property[DETAILS][1][YEAR
$property[DETAILS][1][VALU
$property[DETAILS][2][YEAR
$property[DETAILS][2][VALU
Is there a way to do this:
array_multisort($property[
Notice where the question marks are... Thanks for your time.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can ask for this question to be deleted in the community support
https://www.experts-exchange.com/Community_Support/General/