<?php
function get_filename_parts($file)
{
    
$extension end(explode("."$file));
    
$filename substr($file0, -(strlen($extension)+1) );
    return array(
$filename$extension);
}

var_dump(get_filename_parts(__FILE__));

?>
Output
array(2) { [0]=> string(38) "/local/Web/sites/talks.php.net/display" [1]=> string(24) "php(573) : eval()'d code" }