I have a two array like this.
$array5 = json_decode('[{"time":"12:08 PM","md5":1201},{"time":"01:00 PM","md5":1121},{"day":"03:03 PM","md5":1401},{"time":"03:36 PM","md5":1334}]
',true);
$array6 = json_decode('[{"time":"12:08 PM","ips":20},{"time":"01:00 PM","ips":10},{"time":"03:02 PM","ips":12},{"time":"03:36 PM","ips":11}]', true);
combined array using array_merge_recursive is:
[{"time":"12:08 PM","url":1201,"ips":20},{"time":"01:00 PM","url":1121,"ips":10},{"time":"03:03 PM","url":1401},{"time":"03:36 PM","url":1334,"ips":11},{"time":"03:02 PM","ips":12}]
Now i want to sort this array according to time.Is there any possible to way to sort this array according to time?
json_decode()to create an array from it then useusort()to sort it as you please.