A
A
AdaSchwartz2018-02-27 13:26:06
PHP
AdaSchwartz, 2018-02-27 13:26:06

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

1 answer(s)
I
ivankomolin, 2018-02-27
@ivankomolin

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 question

Ask a Question

731 491 924 answers to any question