Created
November 5, 2019 21:46
-
-
Save erikfig/121371775e68ada25aaf1ba468ac76d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = scandir(__DIR__); | |
foreach ($data as $sub) { | |
if (is_dir(__DIR__ . DIRECTORY_SEPARATOR . $sub)) { | |
echo $sub . ' is a dir'; | |
if (preg_match('/[0-9]{3}/', $sub)) { | |
echo ' and is a bank code'; | |
} | |
echo PHP_EOL; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment