SyntaxFix
Write A Post
Hire A Developer
Questions
Your URL:
$url = 'http://learner.com/learningphp.php?lid=1348'; $file_name = basename(parse_url($url, PHP_URL_PATH)); echo $file_name;
output: learningphp.php