Snippets tagged “increment-operator”
2 snippets use this tag.
- How to increment a number by 2 in a PHP For LoopPHP
You can increment a number by 2 in a PHP for loop by using the increment operator (++) and adding 2 to it on each iteration.
- What's the difference between ++$i and $i++ in PHP?PHP
In PHP, "++$i" is the pre-increment operator and "$i++" is the post-increment operator.