I have a directory with a hundred HTML files that are ordered alphabetically. They are posts to a blog, and I successfully managed to include() them like this:
foreach (glob("posts-en/*.html") as $filename)
{include $filename; }
They all display on my website, but I'd like to reverse the order. I search Stack Overflow, and found an apparent solution with "array_reverse". However if I do this:
foreach (array_reverse(glob("posts-en/*.html") as $filename))
{include $filename;}
It doesn't work. Can anyone help?