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>&lt;?php<br><br>&nbsp;&nbsp;&nbsp; $htmlForOutput = &quot;this is some text &amp;amp; some &lt;html&gt;&quot;;<br><br>&nbsp;&nbsp;&nbsp; echo htmlentities($htmlForOutput, ENT_QUOTES, &quot;UTF-8&quot;, false);<br><br>?&gt;<br><br>This function accepts up to 4 parameters, the 4th one being important to me in this instance as I don&#39;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>