<?php $str='yang.zai.lu.jpg'; echo strrchr($str,'.'); echo '<br>'; echo substr($str,strrpos($str,'.'));
截取文件后缀名
最新推荐文章于 2024-02-29 15:26:02 发布
<?php $str='yang.zai.lu.jpg'; echo strrchr($str,'.'); echo '<br>'; echo substr($str,strrpos($str,'.'));