Answer Posted / lakshmi
<?php
$path = "/home/httpd/html/index.php";
$file = basename($path);
$file = basename($path, ".php");
?>
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is difference between get and post?
Tell us what does $_cookie means?
Explain the difference between array_merge() and array_combine()?
What is the different between count() and sizeof() in php?
Is php still in demand?
Is php dying 2018?
How is it possible to cast types in php?
How to delete file in php?
Explain what does $_server means?
How to create a session? How to set a value in session?
How is it possible to set an infinite execution time for php script?
How do you pass a variable by value?
A process can run only in the background. State Whether True or False?
How to genrate report in wordpress cms
What's the difference between __sleep and __wakeup?