You can use something like this:
for ($i = 0; $i <= 1000; $i += 50)
{
// Your code...
}
It is wise to read PHP for
for more details.
More Related Contents:
- PHP mail() issue
- Store ajax data to php
- in_array() and multidimensional array
- PHP CURL & HTTPS
- sudo in php exec()
- How do I convert an object to an array?
- Getter and Setter? [closed]
- Tracking the script execution time in PHP
- Adding one day to a date
- Sort array of objects by one property
- Switch php versions on commandline ubuntu 16.04
- curl_exec() always returns false
- Checking if all the array items are empty PHP
- Expected response code 220 but got code “”, with message “” in Laravel
- What is PHP session_start()
- How to change PHP’s eregi to preg_match [duplicate]
- Storing database connection in a session variable [duplicate]
- Getting all dates for Mondays and Tuesdays for the next year
- Increase days to php current Date()
- php call class function by string name
- Convert PDF to HTML in PHP?
- Extract floating point numbers from a delimited string in PHP
- PHP PDO how to run a multiple query request?
- PHP Timezone List
- Which is faster? Constants, Variables or Variable Arrays
- How do I send a HTTP/2 POST request in PHP
- Php & Sql Injection – UTF8 POC
- Asynchronous HTTP requests in PHP
- How to display “12 minutes ago” etc in a PHP webpage? [closed]
- Why does PHP not complain when I treat a null value as an array like this?