Lid |
|
Hallo Allen,
Ik heb een simple xml object omgezet naar een array omdat ik dubbele waardes weg wil halen. Maar ik loop nu bij de volgende sticking point...
Array ( [person] => Array ( [0] => SimpleXMLElement Object ( [firstname] => test[lastname] => test [city] => Amsterdam [email] => test ) [1] => SimpleXMLElement Object ( [firstname] => John [lastname] => Doe [city] => New York [email] => johndoe@example.com ) [2] => SimpleXMLElement Object ( [firstname] => John [lastname] => Doe [city] => New York [email] => johndoe@example.com ) [3] => SimpleXMLElement Object ( [firstname] => John [lastname] => Doe [city] => New York [email] => johndoe@example.com ) ) )
Array ( [person ] => Array ( [0] => SimpleXMLElement Object ( [firstname ] => test [lastname ] => test [city ] => Amsterdam [email ] => test ) [1] => SimpleXMLElement Object ( [firstname ] => John [lastname ] => Doe [city ] => New York [email ] => johndoe @example .com ) [2] => SimpleXMLElement Object ( [firstname ] => John [lastname ] => Doe [city ] => New York [email ] => johndoe @example .com ) [3] => SimpleXMLElement Object ( [firstname ] => John [lastname ] => Doe [city ] => New York [email ] => johndoe @example .com ) ) )
De bovenstaande code wil ik loopen maar ik krijg he tniet voor elkaar
kan iemand mij helpen.
dank
|