$imgurl may = catphotos/cploughmanssmall.gif
But the file will change, hence I want to write some code which will take the small.gif from the end and replace it with large.gif but am having some trouble doing this. Here is my code...
Code: Select all
$imgurl = str_replace('%small.gif', 'large.gif', $imgurl);