PHP 8.5.0 Beta 1 available for testing

Voting

: min(seven, four)?
(Example: nine)

The Note You're Voting On

help :-) @ theapotek :-) com
14 years ago
If you are having trouble accessing CDATA in your simplexml document, you don't need to str_replace/preg_replace the CDATA out before loading it with simplexml.

You can do this instead, and all your CDATA contents will be merged into the element contents as strings.

$xml = simplexml_load_file($xmlfile,
'SimpleXMLElement', LIBXML_NOCDATA);

<< Back to user notes page

To Top