Dosya uzantısı bulma
<?
# @yns - 26 kasim 2005 , 05.26
function uzantiBul($isim) {
$dizi = explode(’.',$isim);
$eleman = count($dizi) -1;
$uzanti = $dizi[”$eleman”];
echo $uzanti;
// return $uzanti;
}
uzantiBul(”asdsad.asd.php”); # çıktı : php
?>

Comments:
You must be logged in to post a comment.