Enter this print output print_r($theobject);
SimpleXMLElement Object
(
[@attributes] => Array
(
[label] => a
)
[0] => Abnormal psychology : Abnormal psychology :
)
I just canβt find a way to get element 0, which is "Abnormal Psychology:"
Allows you to call an object as $theobject
I did $theobject[0], received nothing.
Many thanks
source
share