Hi,
I'm a newbie at PHP programming, and I'm trying to figure out an easy way to do the following (I usually end up writing lots of code for things that could take a few lines :hehe: ).
I want a code snippet/function that reads files in a directory that:
A) Have .php extension
B) End with -article
IE:
motor-article.php
and then display them in alphabetical order, like:
autos-article.php
beauty-article.php
What's the easiest/shortest way to accomplish this?.
Thanks for your help
.
I'm a newbie at PHP programming, and I'm trying to figure out an easy way to do the following (I usually end up writing lots of code for things that could take a few lines :hehe: ).
I want a code snippet/function that reads files in a directory that:
A) Have .php extension
B) End with -article
IE:
motor-article.php
and then display them in alphabetical order, like:
autos-article.php
beauty-article.php
What's the easiest/shortest way to accomplish this?.
Thanks for your help







