SPL - Richard Hood
public text v1 · immutable<?php
$a = new DirectoryIterator("./");
foreach ($a as $v) {
echo "Size of:". (string) $v . " is ". $v->getSize()." bytes<br>\n";
echo "Is readable:". (string) $v . " ". $v->isReadable()."<br>\n";
echo "Is writeable:". (string) $v . " ". $v->isWritable()."<br>\n";
echo "Is executable:". (string) $v . " ". $v->isExecutable()."<br>\n";
}
highlight_file(__FILE__);
?>