Package: php5
Version: 5.2.0-8+etch13

When I use htmlentities() function with 4 parameters, I get the following
error:

Warning: htmlentities() expects at most 3 parameters, 4 given

The code that causes this is. Any code which uses 4 parameters in this
function will cause this problem

<?php

    $htmlForOutput = "this is some text &amp; some <html>";

    echo htmlentities($htmlForOutput, ENT_QUOTES, "UTF-8", false);

?>

This function accepts up to 4 parameters, the 4th one being important to me
in this instance as I don't want double HTML entity encoding.

http://uk2.php.net/manual/en/function.htmlentities.php

Reply via email to