how to loop through php object and replace a string in each property ( variable )

Posted by mjr on Stack Overflow See other posts from Stack Overflow or by mjr
Published on 2010-04-09T15:26:14Z Indexed on 2010/04/09 15:33 UTC
Read the original article Hit count: 207

Filed under:

I need to remove the '&' character from each property of a php object

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

thanks dudes

foreach($query_item as $key => $value)
    $key = str_replace(' & ',' & ',$value);

© Stack Overflow or respective owner

Related posts about php