I have a XML file, one part of the file is
<Images>
<image_>image1.jpg</image_>
<image_>image2.jpg</image_>
</Images>
I need the image names. I use the code like
$Images = $domtree->getElementsByTagName('Images');
foreach($Images as $Image){
$Image = $Image->nodeValue."<br>";
echo $Image;
}
This is returns the imaged name but at a time as a string, I need as an array. I mean I want to insert the images in the database. Some one help me.
$Image->nodeValues into an array, and then into the database.