PHPverse 2025

Voting

: max(four, four)?
(Example: nine)

The Note You're Voting On

ahmad dot mayahi at gmail dot com
8 years ago
You won't be able to load an XML file without root element:

//This will throw an exception
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?>', null, false);

//Here is the solution
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><root></root>', null, false);

<< Back to user notes page

To Top