title: codeigniter: trying to remove "&" sign from image name, but not happening, bcoz of that getimagesize() giving error
body: <p><strong>codeigniter: trying to remove "&amp;" sign from image name, but not happening, bcoz of that getimagesize() giving error</strong></p>
  
  <p>I am working on image uploading, but getting issue when image contains "&amp;" symbol in image name.</p>
  
  <p>I am trying to remove that symbole from image name but not happening.</p>
  
  <p>Tried With Following Statements:</p>
  
  <pre><code>$filename = str_replace(" ","&amp;",$_FILES["prod_images"]["name"][$i]);
  
  $filename = str_replace(" ","&amp;amp;",$_FILES["prod_images"]["name"][$i]);
  
  $filename = str_replace(" ","&amp;#38;",$_FILES["prod_images"]["name"][$i]);
  </code></pre>
  
  <p>But "&amp;" symbol is not getting removed from image name.</p>
  
  <p>please suggest me changes or statement.</p>