I have a foreach loop that goes through to get information related to a photo.
It's basically this
foreach($medias as $image) {
$fullImage = $image->imageHighResolutionUrl;
$standardRes = $image->imageStandardResolutionUrl;
$caption = $image->caption;
$createdTime = date("Y-m-d",$image->createdTime);
$imageCode = $image->code;
}
Now I want to put that data into an array (I'm assuming), so I can sort it by $createdTime then loop through the data to run an "INSERT INTO table" mysql query for each photo.