Welcome Guest, Not a member yet? Register   Sign In
Help with Looping through an object
#10

Hi,

I got this answer from https://stackoverflow.com/questions/4282...ect-fields

Code:
$list = json_decode($json);

function cmp($a, $b) {
   return strcmp($a->data_amount, $b->data_amount);
}

usort($list->products, "cmp");
Reply


Messages In This Thread
Help with Looping through an object - by enelson - 11-10-2018, 11:17 AM
RE: Help with Looping through an object - by paulkd - 11-12-2018, 01:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB