title: How can i replace GET[] with .html in URL using php
body: <p>My current url: <a href="http://sarcasmbro.com/img.php?id=1" rel="nofollow noreferrer">http://sarcasmbro.com/img.php?id=1</a> <br>
  What i want: <a href="http://sarcasmbro.com/1.html" rel="nofollow noreferrer">http://sarcasmbro.com/1.html</a> <br>
  Hello stackers, <br>
  As shown above i have having problem using GET[] command. Can i change it and add extension .html or .php using PHP? I want to make a query of that number(id) too. <br></p>
  
  <pre><code>$url = 'http://sarcasmbro.com/1.html';
  $data = parse_url($url);
  $id = basename($data['path'], '.html');
  </code></pre>