





 

|
\n";
foreach ($files as $file) {
$title = Title($file);
echo "$title\n";
}
echo "\n";
// Function to get a human readable title from the filename
function Title($filename) {
$title = substr($filename, 0, strlen($filename) - 5);
$title = str_replace('-', ' ', $title);
$title = ucwords($title);
return $title;
}
?>
|