foreach($array as $item=>$values){ echo $values->filepath; }
<?php while (list($var, $val) = each($array)) { print "$var is $val\n"; } ?>