- basename: documentation ( source)
- ucwords: documentation ( source)
- str_replace: documentation ( source)
<?php
$path = 'test_one_two_three_four_five.php';
$path = str_replace('_', ' ', ($path));
$path = ucwords($path);
echo basename ($path,".php");
?>