I am using a foreach() loop to generate a menu.
I want to specify after N items, to stop clean at the end.
the code looks something like this....
$menu = array(
array("item1"=>"thing1", "itempic"=>"photo"),
array("item1"=>"thing2", "itempic"=>"photo2"),
);
foreach ($menu as $stuff) {
echo "Click <a href=#".$stuff['item1'].">".$stuff['photo']."</a><br>";
}
I jjust need to display the first N things... then stop. The idea is a "highlights" menu. A list of highlights (a large list) and to display "just a few" kind of deal.
just before drawing out the page, i'll use shuffle() on the $menu array so it will be somewhat random.
Ideas on how to do this ?