title: Unable to change values in JSON array via str_replace
body: <p>I would like to change values in an array. Here is my starting array:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [name] =&gt; aaa         
          )
  
      [1] =&gt; Array
          (
              [name] =&gt; bbb            
          )
  
      [2] =&gt; Array
          (
              [name] =&gt; ccc
          )
  )
  </code></pre>
  
  <p>I declare a searchterm (eg. "aaa") and a new name for it (eg. "test"). And than I do a <code>str_replace</code> to actually change it. 
  Unfortunately nothing changes nor do I get an error message. Can you please help and tell me where my error is please?</p>
  
  <pre><code>for ($i=0; $i &lt; count($json) ; $i++) { 
      $search  = $old_name;
      $replace = $new_name;
      str_replace($search, $replace, $json[$i]['name']); 
      print_r($json);     
  }
  </code></pre>