Combined assignment and concatenation : Assignment Operators « Operator « PHP






Combined assignment and concatenation

 
<?
$username = 'james';
$domain = '@example.com';

$username = $username . $domain;
// Concatenate with the combined operator
$username .= $domain;
?>
  
  








Related examples in the same category

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