I have following code:
$url = explode('\n', $urls);
$count = 0;
foreach($url as $image) {
$img = 'c://wamp/www/www.mysite.com/uploads/images/cat1/image'.$count++.'.png';
file_put_contents($img, $image);
}
In variable $urls have many urls with images in format .png.
I try created foreach for each new image create, for example: image1.png, image2.png. It does not work:
Thanks for any help