20.2. Expat XML
The functions in this section wrap the Expat library developed by James Clark <http://www.jclark.com/xml/>. This library is part of the PHP distribution, and its purpose is parsing XML documents. A stream of data is fed to the parser. As complete parts of the data are recognized, events are triggered. These parts are the tags and the data they surround. You register the events with a handler, a function you write. You may specify FALSE for the name of any handler, and those events will be ignored.
Stig Bakken added the XML extension to PHP.
string utf8_decode(string data)
The utf8_decode function takes UTF-8 text and returns ISO-8859-1 text.
string utf8_encode(string data)
The utf8_encode function returns the data argument as ...
Get Core PHP Programming, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.