$aa="无极dvd.中文.rmvb";
$aa="无极dvd.中文.rm";
$aa="无极dvd.中文.mp4";
怎样过滤掉.rmvb,.rm,.mp4后缀
$bb = str_replace(array('.rmvb','.rm','.mp4'),'',$aa)
<?php$a = '无极dvd.中文.mp4';$b = explode('.', $a, -1);echo join('.', $b);?>
$aa = "无极dvd.中文.rmvb";echo substr($aa, 0, strrpos($aa, '.'));