PHP Loop: For, While, Do While, Foreach

Use of loop in PHP Loops in PHP are used to execute the same block of…