hello everyone
[{
"uid": "BR-M12068",
"registeredDate": "Thursday May 11th 2017 03:56:37 PM",
"file_path": "BR-M12068.pdf",
"file_thumbnail_path": "BR-M12068thumb.png",
"test_type": "Free",
"title": "Medical Bills",
"createdAt": "Thursday June 29th 2017 05:02:19",
"chkTime": "Thursday June 29th 2017 05:01:53 PM",
"chkoutTime": "Thursday June 29th 2017 05:02:29 PM"
},
{
"uid": "BR-M12068", /// first data
"registeredDate": "Thursday May 11th 2017 03:56:37 PM",
"file_path": "BR-M12068.pdf",
"file_thumbnail_path": "CEthumb.png",
"test_type": "not-free",
"title": "Medical Bills",
"createdAt": "Sunday June 25th 2017 02:29:38",
"chkTime": "Sunday June 25th 2017 02:28:22 PM",
"chkoutTime": "Sunday June 25th 2017 02:30:07 PM"
},
{
"uid": "BR-M12068", //second data
"registeredDate": "Thursday May 11th 2017 03:56:37 PM",
"file_path": "BR-M12068.pdf",
"file_thumbnail_path": "BRthumb.png",
"test_type": "Free",
"title": "Medical Bills",
"createdAt": "Sunday June 25th 2017 02:29:13",
"chkTime": "Sunday June 25th 2017 02:28:22 PM",
"chkoutTime": "Sunday June 25th 2017 02:30:07 PM"
}
]
i have json data like above as we can see createdAt is same for two Sunday June 25th 2017 02:29:13
now i am trying two merge common date in associative array,but there is no success please help
i want out like this
date-1 [
"uid": "BR-M12068",
"registeredDate": "Thursday May 11th 2017 03:56:37 PM",
"file_path": "BR-M12068.pdf",
"file_thumbnail_path": "BR-M12068thumb.png",
"test_type": "Free",
"title": "Medical Bills",
"createdAt": "Thursday June 29th 2017 05:02:19",
"chkTime": "Thursday June 29th 2017 05:01:53 PM",
"chkoutTime": "Thursday June 29th 2017 05:02:29 PM"
]
date -2[which is same] [
[0] -----> first data
[1] ----->second data
]