>>28
$path_parts = pathinfo('aaa.jpg');
$path_parts['basename']の中身はaaa