Loop in PHP

Loop is used when we want to execute a same code for several times. In PHP we have 4 types of loop: