5 lines
143 B
PHP
5 lines
143 B
PHP
|
<?php
|
||
|
$path = 'www.example.com/public_html/index.php';
|
||
|
$file_name = substr(strrchr($path, "/"), 1);
|
||
|
echo $file_name."\n"; // "index.php"
|
||
|
?>
|