$filename = "test.txt"; $houzhui = substr(strrchr($filename, ‘.‘), 1); $result = basename($filename,".".$houzhui);
时间: 2024-10-07 23:43:33
$filename = "test.txt"; $houzhui = substr(strrchr($filename, ‘.‘), 1); $result = basename($filename,".".$houzhui);