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 singleton class in php?
What are php magic methods?
Which are the best start and end tags to use?
How do I run a php script in windows?
How to get the value of current session id?
how to use http headers inside php? Write the statement through which it can be added?
What is php good for?
Is facebook still written in php?
Does php pass arrays by reference?
What do you use php for?
What are getters and setters and why are they important?
Explain the types of functions for Splitting String?
What is get and post method in php?
Why do we use query?
How to process the uploaded files?