SimpleXML object reading in PHP

smclof

New Member
In \[code\]$val\[/code\] I am getting this value \[code\]SimpleXMLElement Object ( [0] => 464)\[/code\]. How do i put value at \[code\][0]\[/code\] i.e \[code\]464\[/code\] in $ a. I tried using foreach but its not working. Any help is appreciated.
 
Back
Top