<?php
header('Content-type:text/html;charset=utf8');

 


$str = '2390230.png';
$str_arr = explode('.',$str);
$str_arr_count = count($str_arr);
$str_last = ".".$str_arr[$str_arr_count - 1];


echo basename($str,$str_last);      //注意:basename   会自动过滤中文

相关文章:

  • 2021-07-21
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-05-06
  • 2021-06-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-11-06
相关资源
相似解决方案