The second is a bit more complex but will reduce execution time if displaying the list more than once per page and can be used in a foreach loop like this:$cidr_subnets = ipv4_cidr_subnets();foreach ($cidr_subnets as $i => $subnet):