Combined assignment and addition : Assignment Operators « Operator « PHP






Combined assignment and addition

 
<?

$price = $price + 3;
// Add 3 with the combined operator
$price += 3; 
?>
  
  








Related examples in the same category

1.Assignment Operators demo
2.Combined Assignment Operators
3.Combined assignment and concatenation