diff --git a/languages/php.php b/languages/php.php index 572cf93..beb1291 100644 --- a/languages/php.php +++ b/languages/php.php @@ -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]; } @@ -338,4 +338,4 @@ class ClassWithLogger * Use the LoggerAwareTrait in this class. */ use LoggerAwareTrait; -} \ No newline at end of file +}