Write a PHP script to get the characters after the last '/' in an url
- برمجة بي اتش بي
- 2021-09-10
- mhanasmh00489829403
الأجوبة
<?php
$my_url = 'http://www.example.com/5478631';
echo substr($my_url, strrpos($my_url, '/' )+1)."\n";
?>
Sample Output:
5478631
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال