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 are the advantages of stored procedures, triggers, indexes in php?
How to join multiple strings stored in an array into a single string?
What is php rest api?
What are the features of object-oriented programming in php?
Swap two variables value without using third variable in php ?
What is data type in php?
What is return in php function?
Who is known as the father of php?
Is php class name case sensitive?
Explain the changes in php versions?
How to upload file in php?
What is the use of "ksort" in php?
What is final class and final method?
What is meant by pear in php? What is the purpose of it?
How can image properties be retrieved in php?