I would like to set a limit to my array. If my array has 100 items I want it to print only the first 10.
Hi, Something like this? for($i=0; $i<10; $i++) { echo $yourArray[$i]; } PHP: But if you mean paging, where you want to display 10 at a time, just make the number 10 a variable and change the $i dynamically, probably using $_GET[]; Regards, Steve