php xml get value of node -


How can I get "bla" in the dump under my node basically what is in my node bla

  & lt; Mynode name = "myvalueone" display = "myvalue2" & gt; Bla & lt; / Mynode & gt; Object (Simplexmlment) [21] Public '@Entiments' = & gt; Array 'name' = & gt; String 'MyLiveOn' (length = 65) 'display' = & gt; The string 'myvalue2' (length = 9) string 'bla' (length = 3)    

You can get the value by casting SimpleXMLElement in a string like this: $ value = (string) $ element;

Comments