have an associative array which has mutliple dimensions (products_id, products_price, products_name). I want to sort it alphabetically w.r.t the products_name.
I found this function in the php manual :
void asort (array array [, int sort_flags])
I am sure i am using the right functions for sorting. But somehow I am getting syntax errors.
asort($new_products [, SORT_STRING] ); ///this is line no 30
reset($new_products);
The error is:
Parse error: parse error, unexpected ',', expecting ']' in c:\web\rl\mopics3\includes\boxes\all_products.php on line 30
I tried using different ways of using the same function but I still get syntax errors.
Any help would be greatly appreciated.