php array_multisort Array sizes are inconsistent

Author: Anonymous Publish Time : 2023.02.02 15:03:34 Updated Time : 2023.02.02 15:03:34

ajax return error

string(28) "Array sizes are inconsistent"
{"status":"failed","msg":"updating cart failed","data":null}

 

this is my code 

$sortColumn = array_column($carriers, 'shipping_cost');
 
array_multisort($sortColumn, SORT_ASC, $carriers);  
Comment
Login To Comment

No Comments