Код: Выделить всё
function returnPhotos($path){
$files = scandir($path);
$files = array_diff(scandir($path), array('video', '.', '..'));
$filesInArray = count($files);
return $files;
}
< /code>
Здесь я прохожу через массив и показываю изображения < /p>
Подробнее здесь: [url]https://stackoverflow.com/questions/46392180/loading-1000-images-on-one-page[/url]
Мобильная версия