how to loop through php object and replace a string in each property ( variable )
<p>I need to remove these ' &amp; ' characters from each property of a php object</p>

<p>I tried the code below but it's not working...what am I missing?</p>

<p>thanks dudes</p>

<pre><code>foreach($query_item as $key =&gt; $value)
{
    $key = str_replace(' &amp; ',' &amp;amp; ',$value);
}
</code></pre>
