function strip_ext($name)
{
$ext = strrchr($name, '.');
if($ext !== false)
{
$name = substr($name, 0, -strlen($ext));
}
return $name;
}
// demonstration
$filename = 'file_name.txt';
echo strip_ext($filename)."n";
// to get the file extension, do
echo end(explode('.',$filename))."n";
?>
70+ Creative Font Typography Designs
-
*Font typographic* designs is now more popular and we can notice a surge
for fonts Type work on portfolio sites, Here we have collected* 70+
Creative Fon...
13 years ago
No comments:
Post a Comment