Package: php5<br>Version: 5.2.0-8+etch13<br><br>When I use htmlentities() function with 4 parameters, I get the following error:<br><br>Warning: htmlentities() expects at most 3 parameters, 4 given<br><br>The code that causes this is. Any code which uses 4 parameters in this function will cause this problem<br>
<br><?php<br><br> $htmlForOutput = "this is some text &amp; some <html>";<br><br> echo htmlentities($htmlForOutput, ENT_QUOTES, "UTF-8", false);<br><br>?><br><br>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. <br>
<br><a href="http://uk2.php.net/manual/en/function.htmlentities.php">http://uk2.php.net/manual/en/function.htmlentities.php</a><br>