Skip to content

PHP code snippet – How many files in dir ?

$fi = new FilesystemIterator(__DIR__, FilesystemIterator::SKIP_DOTS);
printf("There were %d Files", iterator_count($fi));
See also  Java code snippet - How to use setonclicklistener from custom view in android?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.