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:
Date: 6 years ago
Size: 283 bytes
 

 

Contents

Class file image Download
<?php

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 );

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


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