title: Get only filename from url in php without any variable values which exist in the url
body: <p>I want to get filename without any <code>$_GET</code> variable values from a URL in php?</p>
  
  <p>My URL is <code>http://learner.com/learningphp.php?lid=1348</code></p>
  
  <p>I only want to retrieve the  <code>learningphp.php</code> from the URL?</p>
  
  <p><strong>How to do this?</strong></p>
  
  <p>I used <code>basename()</code> function but it gives all the variable values also: <code>learntolearn.php?lid=1348</code> which are in the URL.</p>