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