kansaschuck wrote:...
In some doc I'm seeing (and it also show in my reply before this one) that '&' is sometimes represented by '&'.
Still researching.
Are you doing a "view source" in your browser to see what is really there, as opposed to just what the browser itself is showing?
If it might be "&", you could handle either/or with either of these:
$image_url = str_replace(array('&limitsize=', '&limitsize=', '', $sprint_user_photo_link);
// ...or...
$image_url = preg_replace('/&(amp;)?limitsize=/', '', $sprint_user_photo_link);