php array_multisort Array sizes are inconsistent
多店铺多商家外贸平台系统解决方案 —— cross border shop( https://www.crossborderpower.com)
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
No Comments
Add Comment