In Ruby, increment is done with self-assignment ”+=1” rather than ”++”.
Increment in PHP
$i = 0;
$i++;
Increment in Ruby
i = 0
i += 1
That’s all from the Gemba.
In Ruby, increment is done with self-assignment ”+=1” rather than ”++”.
$i = 0;
$i++;
i = 0
i += 1
That’s all from the Gemba.