You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
143 B
PHTML
5 lines
143 B
PHTML
5 years ago
|
<?php
|
||
|
$path = 'www.example.com/public_html/index.php';
|
||
|
$file_name = substr(strrchr($path, "/"), 1);
|
||
|
echo $file_name."\n"; // "index.php"
|
||
|
?>
|