PHP,ASP,JAVASCRIPT,MYSQL;HTMLDERSI » Blog Archive » Dosya uzantısı bulma

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

?>

21 Ocak 2008 | PHP | Comments

Comments:

You must be logged in to post a comment.