basename()
The function basename () is used for printing the basename of the file, e.g.
<?php
$name = "c:/wamp/www/dest.txt";
echo basename($name) ."<br/>";
echo basename($name,".txt");
?>
The output of this example will print both the base name of the file with extension and basename without extension.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.