This is a loop which goes on forever, $i never gets changed…
while ($i < 4) {
print_r(", ");
}
maybe you meant this?
if ($i < 4) {
print_r(", ");
}
More Related Contents:
- While loop within While loop not looping
- PHP: for-loops and if-statement
- Sign in form always showing "Wrong Credentials"
- How to limit items from for loop?
- Prevent creating duplicate entries in PHP
- php nested while loop. Inner loop works only once [closed]
- Increment number php every next number
- Performance of FOR vs FOREACH in PHP
- PHP – while loop (!feof()) isn’t outputting/showing everything
- How do I iterate over the results in a MySQLi result set?
- mysqli_fetch_array while loop columns
- php/mysql with multiple queries
- How can I break an outer loop with PHP?
- How to populate HTML dropdown list with values from database
- FOR loop performance in PHP
- Foreach value from POST from form
- mysqli query results to show all rows
- How can I use break or continue within for loop in Twig template?
- Multiple index variables in PHP foreach loop
- How to perform an action every 5 results?
- New containing div after every 3 records
- Using a variable outside of the while loop (scope)
- foreach with three variables add
- How can I list data in sections by an ID, with a while loop in PHP? [closed]
- PHP – Flushing While Loop Data with Ajax
- header of php not working btw html? [duplicate]
- Returning JSON from a PHP Script
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- How can I count the numbers of rows that a MySQL query returned?
- Fatal error: Maximum execution time of 300 seconds exceeded