stripExt() public static method

Strip off the extension if it exists.
public static stripExt ( string $path ) : string
$path string
return string
Exemplo n.º 1
0
 public function testStripExt()
 {
     isSame('image', FS::stripExt('image.png'));
     isSame('image.jpg', FS::stripExt('image.jpg.png'));
     isSame('/file/path/image.jpg', FS::stripExt('/file/path/image.jpg.png'));
 }