title: Replace "\/" with "/" in an array in php
body: <p>I have the following array that contains lots of "\/", since the array is generated from a screen scrape of the javascript of a page "\/" is meant to be just "/". Here's the array:</p>
  
  <pre><code>Array ( 
      [0] =&gt; 1 Jet Black 
      [1] =&gt; 1B\/350T Black With Copper Tips 
      [2] =&gt; 1B\/BGT Black With Burgandy Tips 
      [3] =&gt; 1b Natural Black 
      [4] =&gt; 2 Darkest Brown 
      [5] =&gt; 4 Chocolate Brown 
      [6] =&gt; 27 Strawberry Blonde 
  ) 
  </code></pre>
  
  <p>The best I can think of would be to:</p>
  
  <pre><code>$a = array("1B\/BGT Black With Burgandy Tips", "1B\/350T Black With Copper Tips");
  
  foreach ($a as $key =&gt; $itsvalue) {
      $a[$key] = strreplace("\\\/","\/",$itsvalue)
  }
  </code></pre>