So-far I have the following code in a php page:
<?
$filename = glob("news/*.php");
rsort($filename);
foreach ($filename as $filenamein) {include($filenamein);}
?>
This codes includes all the content of each php file from the "news" folder in reverse order.
It works perfect, but I want to modify this code so that it includes only the first 4 php files (still in reverse order) from the "news" folder.
I honestly have no idea how to go that next step, though I'm sure it's very simple.
Can anyone give me the modified code?
Thanks!