PHP Classes

File: classes/Find/index.php

Recommend this page to a friend!
  Classes of Ravi Kumar  >  SPL Find Images  >  classes/Find/index.php  >  Download  
File: classes/Find/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: SPL Find Images
Get images for a gallery using SPL find iterators
Author: By
Last change: first commit
Date: 10 months ago
Size: 283 bytes


Class file image Download

include_once 'Find.php';

$path = realpath( 'C:\xampp\htdocs\Gallery\uploads' );

$find = new Find;
$files = $find->sort(2)->limit(0,10)->extension( ['jpg'])->in( $path );

$files as $key => $file) {
'<pre> ' , $key . ' <br> ' , print_r($file, 1), '</pre>';

For more information send a message to info at phpclasses dot org.