标签:var 方法 trim com detail www bst http href
方法一:
$str = " www.wdphp.com ";
$var = trim($str);
$len = strlen($var)-1;
echo $var[$len];
方法二:
$str = "www.wdphp.com";
echo substr($str, -1);
来源:https://blog.csdn.net/yvsm316/article/details/77049671
标签:var 方法 trim com detail www bst http href
原文地址:https://www.cnblogs.com/KillBugMe/p/13234834.html