title: How to remove %-sign in php string
body: <p>i need to remove % sign from file or image name in directory
  which string i use </p>
  
  <pre><code>$oldfile = "../wallpapers/temp-uploaded/".$file ;
  $newfile = "../wallpapers/temp-uploaded/". trim( str_replace('%', '', $file));
  
  rename("$oldfile","$newfile");
  </code></pre>
  
  <p>But its not work 
  reply me which string i use ( trim, str_replace not work
  preg_replace  how can i use for remove &amp;%$ etc
   reply back</p>