Voting

: min(four, nine)?
(Example: nine)

The Note You're Voting On

SongoQ
15 years ago
RecursiveRegexIterator::ALL_MATCHES List all subdirectories and files.

<?php

$a
= new RecursiveRegexIterator( new RecursiveDirectoryIterator(
'/home/songoq' ), '/mydir/i', RecursiveRegexIterator::ALL_MATCHES );

foreach( new
RecursiveIteratorIterator( $a ) as $s )
{
echo
$s."\n";
}

<< Back to user notes page

To Top