trim(string,charlist)
它用于删除空格和其他字符
Sr.No | 参数 & Description |
---|---|
1 |
string 用于指定要检查的字符串 |
2 |
charlist 它指定要删除的字符 链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-trim.html 来源:LearnFk无涯教程网 |
它返回修改后的字符串
<?php $input="tutorials point"; echo $input . "<br>"; echo trim($input,"point"); ?>
这将产生以下输出-
tutorials point
utorials
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
Tony Bai · Go语言第一课 -〔Tony Bai〕