php base path code example
Example: php basename from path
<?php
$path = "/testweb/home.php";
$filename = basename($path);
$filename_without_php_extension = basename($path,".php");
<?php
$path = "/testweb/home.php";
$filename = basename($path);
$filename_without_php_extension = basename($path,".php");