Start Validating utf 8

Validating utf 8

Therefor echo works too:echo $val; // will display the name Here's a quick way to dump the node Values from Simple XML into an array using the path to each node Value as key. in code that doesn't know about the underlying xml).

", while in an PHP array, the key of which must be different.

I think the array structure developed by svdmeer can fit for XML, and fits well. In regexp max length is 6 becouse I found that is the maximum length of possible html entity using this code: You will get something like: Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/mysite/on line 10However, this WILL work and is much simpler then using (string) or other methods.

You can then run either The UTF-8 Validator is written in Java and may be easily used from any Java (Scala, Clojure, JVM Language etc) application.