标签:获取 color 后缀 turn str ext get file bst
方法1: function get_file_type($filename){ $type = substr($filename, strrpos($filename, ".")+1); return $type; } 方法2: function get_file_type($filename) { $type = pathinfo($filename); $type = strtolower($type["extension"]); return $type; } 方法3: function get_file_type($filename) { $type =explode("." , $filename); $count=count($type)-1; return $type[$count]; }
标签:获取 color 后缀 turn str ext get file bst
原文地址:https://www.cnblogs.com/sgm4231/p/9821711.html