This is probably quite simple to do.. but I just can't think of how to do this.
I have a photo upload script, I want to return two types of data in an array, right now I just have one set of data for the photo returned.
right now I do this:
$photos = array();
///Script for photo upload etc.
array_push($photos, $newPhotoToAdd)
//then when it's finished uploading each photo i do json_encode:
print json_encode($photos);
all of this works perfect, however now I want to return another set of data with each photo.
I need to do something like:
array_push($photos, ['photoID'] = $photoID, ['photoSource'] = $newPhotoToAdd)