Combined assignment and addition : Assignment Operators « Operator « PHP
- PHP
- Operator
- Assignment Operators
Combined assignment and addition
<?
$price = $price + 3;
// Add 3 with the combined operator
$price += 3;
?>
Related examples in the same category