If you are using a PHP version prior to 5.2.3 the $doubleEncode parameter is not available so you will need
to comment out the last parameter in the return clause (including the preceding comma)
public static htmlentities ( string $string, integer $quoteStyle = ENT_COMPAT, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string | ||
$string | string | |
$quoteStyle | integer | Uses ENT_COMPAT if null or omitted |
$charset | string | Uses UTF-8 if null or omitted |
$doubleEncode | boolean | |
Результат | string |