function basename
This function returns the base name of a file in directory, the path should be provided.

<?php
//dir_basename.php
function simple()
{
$path = "http://manas6/myphp/File_Directories/Directories/dir_basename.php";
echo "$path<br/>";
$base = basename($path);
echo "<u>Read Filename of the base directory</u>:&nbsp $base<br/>";
$base_name = basename($path, ".php");
echo "<u>Read Filename of with out extension</u>:&nbsp$base_name<br/>";
}
?>
<html>
<title> dir_basename.php</title>
<body text="#000080" bgcolor="#F7F0D7">
Example <u> function base name :</u><br>
<?php
//$test=$_POST[T1];
simple();
?>
</body>
</html>