PHP

How to sum numbers with php using for loop(Between 0 and 30)?1 min read

The for keyword indicates a loop in PHP. The for loop executes a block of statements repeatedly until the specified condition returns false.

PHP Code: Create a script using a for loop to add all the integers between 0 and 30 and display the total




Output:

create a script using a for loop to add all the integers between 0 and 30 and display the total
create a script using a for loop to add all the integers between 0 and 30 and display the total

Leave a Comment