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
How many types of session are there?
Explain me what is the goto statement useful for?
Does php have future?
What is composer used for?
Php being an open source is there any support available to it?
What is overloading and overriding in oop?
Explain what does the unset() function means?
Does php have a future?
What is difference between strstr() and stristr() in PHP?
What is delimiter php?
What are the characteristics of php variables?
How do I escape in php?
What is an associative array?
What are the difference between echo and print?
What is php dependency injection?