<!DOCTYPE html>
<html>
<body>
<?php
$str = "Hello World!";
echo $str . "<br>". "<br>";
echo trim($str,"Herld!");
?>
</body>
</html>
输出结果是:
Hello World!
o Wo
第二行不应该是:llo Wo吗?
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
因为ll被trim函数给清除掉了