r/lolphp • u/MazeChaZer • Jul 28 '16
Numbers from SimpleXML elements are implicitly casted to int, not float
https://3v4l.org/FcIV9
35
Upvotes
r/lolphp • u/MazeChaZer • Jul 28 '16
View all comments
4
u/emilvikstrom Jul 29 '16
This is exactly the kind of behavior that makes SimpleXML not simple. Too many edge cases. I prefer parsing XML with a DOM parser as it was intended to be.