The PHP Manual offered me NO help on this one, so now I appeal to the
populace:
[PHP]
$dirID = @opendir('/my/path/to/files');
while (($fyl = @readdir($dirID ))) {
$obj =& new ClassObject($fy l);
array_push($ima geArray, $obj);
$obj = null;
}
[/PHP]
I now have an array $imageArray of objects as so:
I need to sort $imageArray by "image_name " or by "image_dimensio ns"
and I can't think of a way to do it, any ideas?
Thanx
Phil
populace:
[PHP]
$dirID = @opendir('/my/path/to/files');
while (($fyl = @readdir($dirID ))) {
$obj =& new ClassObject($fy l);
array_push($ima geArray, $obj);
$obj = null;
}
[/PHP]
I now have an array $imageArray of objects as so:
Code:
$imageArray[0]->image_name
Code:
$imageArray[0]->image_dimensions
and I can't think of a way to do it, any ideas?
Thanx
Phil
Comment