lsk007

<?php

$file=\'cdd.jpg\';

function get_extension1($file){ 

        $a=substr(strrchr($file,\'.\'),1);

   echo $a;

}
function get_extension2($file){

   $b=explode(\'.\',$file); $a=end($b);

  echo $a;

}    

get_extension2($file);

分类:

技术点:

相关文章:

  • 2021-12-28
  • 2021-08-03
  • 2021-04-01
  • 2021-08-15
  • 2021-11-30
  • 2021-08-13
  • 2021-11-24
  • 2021-08-13
猜你喜欢
  • 2021-11-06
  • 2021-08-15
  • 2021-08-15
  • 2021-08-15
  • 2021-11-06
  • 2021-08-15
  • 2021-07-03
相关资源
相似解决方案