- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
<?php
//file_put_contents("php://filter/write=string.toupper/resource=/tmp/test/example.txt","Hello World");
foreach(new GlobIterator('/tmp/test/*', FilesystemIterator::SKIP_DOTS) as $file) {
//echo $file.PHP_EOL;
var_dump(file_get_contents($file));
}