Answer the question
In order to leave comments, you need to log in
Is substr_replace in the right place?
$img = file_put_contents('photo.jpg', file_get_contents(substr_replace($link['img'],'640x640.jpg',-11))));
Answer the question
In order to leave comments, you need to log in
Well, if you want to replace in $link['img'] part of the string starting with the 11th character with "640x640.jpg", then yes)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question