PHP continue is a ‘control structure’ that belongs to a group with other control structures such as if, else, while, foreach and more. Its main use is to skip something. A popular place you may encounter ‘continue’ is within a loop. When it is used within a loops, it is used to ‘skip something’. The code belowe shows how it can be used to skip an item in an array.
Output is:
Pete
John
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton