Write a foreach loop for this array.
- by mjames
Hi, I am using the xpath in php5 to parse a xml document. The problem I have is writing a foreach to correctly display the following array
array(1) {
[0]=
object(SimpleXMLElement)#21 (2) {
["file"]=
string(12) "value 1"
["folder"]=
string(8) "value 2"
}
}
Ideally i would like to get the value by using $row['file'] or $row['folder']. Thanks for any help.