Hi all,
I've tried searching both here and google for help on this one. I'm not quite sure what to call it basically I have a directory with different files all .txt. I want to display only the ones beginning with letter A. How do I modify my below code to do this?
<?php
if ($handle = opendir('poems/')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "$file\n <br />";
}
}
closedir($handle);
}
?>
I know I need to use something like A* but I don't even know what to call it to search for it?
Thanks!