Voting

: min(one, three)?
(Example: nine)

The Note You're Voting On

christian dot reinecke at web dot de
16 years ago
If you get the error message "domdocument::domdocument() expects parameter 2 to be long, string given" for a code sample like this:

$dom = new DOMDocument('1.0', 'UTF-8');
$dom->xmlStandalone = false;
echo $dom->saveXML();

which is obviously correct if you compare the constructor signature:

__construct ([ string $version [, string $encoding ]] )

make sure you're not overwritting this dom library by another (f.e. extension=php_domxml.dll in php.ini). XAMPP f.e. delivers its standard version with php_domxml.dll which ends up in this error message

<< Back to user notes page

To Top