- var_dump: documentation ( source)
<?php
$path = "/home/sjon/phpshell/root/php-5.5.0/lib/php/extensions/no-debug-non-zts-20121212/vls.so";
//$dir = dir($path);
try {
$file = new \SplFileObject($path, 'r');
} catch (Exception $e) {
echo $e->getMessage();
exit;;
}
var_dump($file->isFile());
exit;;
while (($entry = $dir->read()) !== false) {
var_dump($entry);
try {
$file = new \SplFileObject($path. $entry, 'r');
} catch (Exception $e) {
continue;
}
var_dump($file->isFile());
}