A friend of mine saw "+=" in a script and asked me what it meant.
I searched php.net and google and everything, and I've come up empty handed.
"plus equals"???
I don't get it.
Explain?
A friend of mine saw "+=" in a script and asked me what it meant.
I searched php.net and google and everything, and I've come up empty handed.
"plus equals"???
I don't get it.
Explain?
Here is an example
that will produce 15. it is equivalent toPHP Code:<?php
$num = 5;
$num += 10;
echo $num
?>
PHP Code:<?php
$num = 5;
$num = $num + 10;
echo $num
?>
Bookmarks