var photos = [];
var imgs = document.getElementById("photos").getElementsByTagName("img");
for(var i=0;i
That should give you something that is roughly equivalent to this in PHP (I made up pretend data):
Array(
[0] => Array(
"src" => "logo.png",
"alt" => "My Logo!",
"background" => "#ffffff"
)
)
I hope this helps!