The for loop a block of code for certain number of times.
Syntax
for(initialization; condition; increment){ // code to be executed }
Example
for($i=1;$i<=10;$i++){ echo $i; }
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.