Spaces:
Runtime error
Runtime error
File size: 406 Bytes
2ff2eb5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<?php
error_reporting(0);
$presetList = array();
$dir = new FilesystemIterator(__DIR__ . '/questions');
foreach ($dir as $fileinfo) {
if ($fileinfo->getExtension() == "set"){
array_push($presetList,substr($fileinfo->getFilename(), 0, -4));
}
}
sort($presetList);
if(array_count_values($presetList)>0){
foreach ($presetList as &$value) {
echo $value . "</br>";
}
}
?>
|