具体函数是:PHP rtrim() 函数

参考地址:

http://www.w3school.com.cn/php/func_string_rtrim.asp

参考:

<!DOCTYPE html>
<html>
<body>

<?php
$str = "Hello World!";
echo $str . "<br>";
echo rtrim($str,"World!");
?>
  
</body>
</html>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2022-03-07
  • 2021-09-16
相关资源
相似解决方案