d
Amit DhamuSoftware Engineer
 

Remove File Extension

1 minute read 00000 views
$file = 'image.jpg';
$no_ext = preg_replace('/.[^.s]{3,4}$/', '', $file);