Birden Yükle ve Resim isimleri

0 Cevap

Ben yüklemeden sonra görüntüleri yeniden adlandırır bir çoklu yükleme formu var:

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

0 Cevap