PHP Dynamic Pagination Without SQL

后端 未结 4 684
青春惊慌失措
青春惊慌失措 2020-12-08 17:36

I\'ve got a script that dynamically calls and displays images from a directory, what would be the best way to paginate this? I\'d like to be able to control the number of i

4条回答
  •  我在风中等你
    2020-12-08 18:15

    If you name your images 01.jpg, 02.jpg it makes it easier to paginate. Then use glob to get all the images into an array and sort it.

提交回复
热议问题