I have a multiple upload form, that renames images after upload:
for ($i = 0; $i < count($_FILES['images']['name']); $i++) {
$ext= end(explode(".", $_FILES['images']['name'][$i]));
$name = rand(1111111,9999999).'.'.$ext;
}
With print_r($name) the output is a string image1.jpgimage2.jpgimage3.jpg.
Why the output is a string? How can I give an array?
Thanks in advance
will do the trick
Bonus: