fonksiyonun içinde tanımlamadınmı?

// get file list 
function get_file_list($file_path)  
{ 
    global $path; 
$dizi = array();
    $opendir = opendir($file_path); 
    while ( gettype($file = readdir($opendir) ) != boolean )  
    { 
        if ( is_file("$file_path/$file") && ($file !='index.html') && ($file !='index.htm') && ($file !='.htaccess') )  
        { 
            // Change to the name of the file 
            $last_modified = filemtime($file_path . $file); 
            $dizi[$last_modified] = '<ul class="detals_list">'; 
            //echo '<li><strong>' . date("dS F, Y H:i T", $last_modified) . '</strong></li>'; 
            $dizi[$last_modified] .='    <li><strong>' . turkce_tarih($last_modified) . '</strong></li>'; 
            $dizi[$last_modified] .= '    <li class="download"> <strong><a href="' . $file_path . $file . '" title="' . $file . '">İndir</a></strong> [' . get_filesize(filesize($path . $file)) . ']</li>'; 
            $dizi[$last_modified] .= '    <li><span class="gensmall" style="color:gray">' . md5_file($path . $file) . '</span></li>'; 
            $dizi[$last_modified] .= '</ul>'; 
        } 
    } 
    closedir ($opendir); 
ksort($dizi[$last_modified])
 foreach($dizi[$last_modified] in  $veri){
 echo eval($veri);
 }
}