主页
PHP
PHP htmlentities() 函数
tryphp_func_string_htmlentities3
运行 ❯
×
更改方向
保存代码
更改主题
<?php $str = "My name is �yvind �sane. I'm Norwegian."; echo htmlentities($str, ENT_QUOTES); // Will only convert double quotes (not single quotes), and uses the character-set Western European ?>