Jump to content

Simplexml with complex names


CarbonCopy

Recommended Posts

<?php
$update_cases       = simplexml_load_file("Case.xml");
foreach ($update_cases as $case) {
echo $case->Case_x0020_ID_x0020__x0023_ . "<br />";	
}
?>

 

That code does not work. However, echo $case->ID works perfectly. Therefore, I assume the problem is with the crazy name. How am I supposed to access it properly?

 

Link to comment
https://forums.phpfreaks.com/topic/146253-simplexml-with-complex-names/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.