App下载

demo_func_string_htmlentities3 在线工具

demo_func_string_htmlentities3 在线工具

<?php
$str = "My name is u00d8yvind u00c5sane. I'm Norwegian.";
echo htmlentities($str, ENT_QUOTES, "ISO-8859-1"); // Will only convert double quotes (not single quotes), and uses the character-set Western European
?>
运行结果