how to loop through php object and replace a string in each property ( variable )
- by mjr
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);
}