Looping Statement in PHP

Looping Statement in PHP

In this article, we will explain the Looping statement in PHP. The looping statement is used for a specific number of times with the condition. Following Looping Statements are used

How to Use For Loop Statement in PHP

How to Use For Loop Statement in PHP

In this article, you will learn How to Use For Loop Statement in PHP. Syntax: for(initialization;condition;increment) { code to be executed } Example:- <?php for($i=0;$i<=10;$i++){echo “The Number is “.$i.”<br/>”; }

How to Create Auto Counter in PHP

How to Create Auto Counter in PHP

In this article, you will learn How to Create Auto Counter in PHP. counter.php <?php $fp=fopen(“count.txt”,”r”); if(!($fp=fopen(“count.txt”,”r”))) { die(‘file not found’); } else { $counter=(int)fread($fp,20); fclose($fp); $counter++; echo “you are