Php Basename desde el camino

<?php
  $path = "/testweb/home.php";

  $filename = basename($path);
  $filename_without_php_extension = basename($path,".php");
loneWolf_sage