`

php 字符层截取 技巧

    博客分类:
  • php
php 
阅读更多
/**
* 去除字符串最后1个字符 最简单方法
*/

$str = "abcd";
$newstr = substr($str, 0, -1); //abc
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics