You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns text content that is directly in this element. (...)
Well, the confusing thing is that every XML node is called a SimpleXMLElement in ext/simplexml, even if they're not XML elements. But that aside, if I read the docs as "Returns text content that is directly in this node." then I would expect the cast to give me the comment contents, as that's the text inside of it.
The text was updated successfully, but these errors were encountered:
Description
Bug report or feature request, I don't know for sure... Could be considered either?
Anyway:
Gives output:
But I expected:
Looking at the documentation for __toString: https://www.php.net/manual/en/simplexmlelement.tostring.php
Well, the confusing thing is that every XML node is called a SimpleXMLElement in ext/simplexml, even if they're not XML elements. But that aside, if I read the docs as "Returns text content that is directly in this node." then I would expect the cast to give me the comment contents, as that's the text inside of it.
The text was updated successfully, but these errors were encountered: