foreach($ret as $object)
{
$res = $object->...;
$img_src = $res[0]->src;
echo $img_src . '<br />';
echo str_replace("&size=2", "", $img_src) . '<br /><br />';
}
$img_src
~ 'http://site.com/img.jpg&size=2'
And I have to receive same link but without &size=2
. Why doesn't work my last line in code. It shows the same url.