PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 239 bytes
 

Contents

Class file image Download
<?php
for ($i = 0; $i < 10; $i++) {
   
// Everything is fine
}

for (;
$it->valid();) {
   
$it->next();
}

for (;((
$it1->valid() && $foo) || (!$it2->value && ($bar || false)));/*Could be ignored*/) {
   
$it1->next();
   
$it2->next();
}