what is combined concatenation operator?
THank You.
Pankaj Gupta
what is combined concatenation operator
Moderator: General Moderators
-
pankajdeoria
- Forum Newbie
- Posts: 15
- Joined: Thu Mar 12, 2009 10:58 am
- Location: Bangalore,India
Re: what is combined concatenation operator
Combined operators allow you to update the value of a variable easily. Here's an example, the second one is combined concatenation.
Code: Select all
<?php
$num = 3;
$num += 2;
echo $num; //prints "5", the sum of 3 and 2
$greeting = 'Hello, ';
$greeting .= 'Pankaj';
echo $greeting; //prints "Hello, Pankaj"
?>