问题
I am primarily an ActionScript programmer and I love working with XML using E4X. I also use PHP a lot but am currently too intimidated to process XML with PHP, I was wondering if there was a way to use E4X in PHP?
Thanks.
回答1:
This might be approximately what you're looking for.
That said, you're probably better off using one of the native PHP XML-parsing methods. SimpleXML is probably your best bet.
来源:https://stackoverflow.com/questions/761087/is-there-anyway-to-use-e4x-in-php