Write a PHP script to extract the file name from the following string
- برمجة بي اتش بي
- 2021-09-10
- mhanasmh00489829403
الأجوبة
<?php
$path = 'www.example.com/public_html/index.php';
$file_name = substr(strrchr($path, "/"), 1);
echo $file_name."\n"; // "index.php"
?>
Sample Output:
index.php
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
