Sublime Text
<?php $path = "/javascript/default.html"; echo basename($path); echo "<hr>"; echo basename($path, ".html"); ?>
default.html
default