PHP: Limit foreach Loop