Am I missing an obvious function here?*
(*Probably, being a newbie)
I want to take the first few (three or four, probably) elements from an associative array and construct an HTML list from them.
"foreach" would be the answer if I wanted every element, but I don't.
The array itself will have new elements added to it periodically, so should be processed in the order it's written in the code (not sorted in any other way first). From a database table it would be easy, but we're not allowed databases on our web server (for fear of errant people writing unsecure database-driven sites, I think).