Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Gallery
- {
- public $images = [];
- public function getImages($dir)
- {
- $this->images[] =scandir (__DIR__ . $dir);
- //$this->images = array_diff ($this->images, ['.', '..']);
- return $this->images;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement