title: how to stop & from changing to &amp in a url?
body: <p>I have a url like this, <code>https://www.example.com/send?id=1</code>&amp;<code>text=http://example2.com/song.mp3</code></p>
  
  <p>when I try to get the data of the url using <code>file_get_contents()</code> it shows below error,</p>
  
  <p>PHP Warning:  file_get_contents(<code>https://www.example.com/send?id=1</code>&amp;amp<code>text=http://example2.com/song.mp3</code>):
  failed to open stream: HTTP request failed! HTTP/1.1 501 Not Implemented</p>
  
  <p>and the &amp; have converted to &amp;amp. due to that the url is not working.</p>
  
  <p>I have tried <code>htmlspecialchars_decode()</code> and <code>preg_replace()</code> on &amp; , but it didn't do anything.</p>
  
  <p>how to solve this ? </p>