mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2025-02-03 12:38:27 +00:00
Merge pull request #110 from janstuemmel/patch-1
Fix php cheatsheet, for loop
This commit is contained in:
commit
08f4e886d6
@ -24,7 +24,7 @@ foreach($arr as $key => $value) {
|
||||
}
|
||||
|
||||
// For
|
||||
for($i = 0; $i < count($arr) - 1; $i++) {
|
||||
for($i = 0; $i < count($arr); $i++) {
|
||||
$key = $i;
|
||||
$value = $arr[$i];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user