php取url后的文件名

<?
$a="http://www.esyu.com.cn/images/aaa.gif";
echo substr($a,strrpos($a,"/")+1);
?>