Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Brecht-Precht committed Oct 26, 2016
1 parent b7292a7 commit b2fa479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Stack item 2: 9.12
#### Using `for`

```{php}
for ($i = 0; $i < $stack->size(); $i++) {
for ($i = 0, $n = $stack->size(); $i < $n; $i++) {
echo 'Stack index ' . $i . ': ' . $stack->get($i) . PHP_EOL;
}
```
Expand Down

0 comments on commit b2fa479

Please sign in to comment.