Skip to content

파일이름에서 확장자를 뽑아냄

MintState November 10, 2008 at 1:16 PM Views 15400

파일이름에서 확장자를 뽑아냄

function get_ext($file) 
{ 
	$file=eregi_replace("^.+\.([^\.]{1,})$","\\1",$file); 
	return strtolower($file); 
}
Share X Facebook LINE QR code

0 comments

Be the first to comment.