|
|
|
php |
dosyanın uzantısını (tipini) bulmak | | <?php
function get_ext($str,$ext=false){
if($ext){
return substr($str,strrpos($str,'.')+1);
}
return substr($str,0,strrpos($str,'.'));
}
?>
örnek
<?php
echo get_ext('somefile.php'); // somefile
echo get_ext('package.zip', true) // zip
?> |
Böyyük Patron Tarafından 14-01-2009 Tarihinde Gönderilmiştir.
Bu Konuyu Yazdır Kaynak : |
|
|
|