1<?php
2
3// First String
4$a = 'Hello';
5
6// Second String
7$b = 'World!';
8
9// Concatenation Of String
10$c = $a.$b;
11
12// print Concatenate String
13echo " $c \n";
14?>
15
1this is inside for or foreach loop
2
3# For concatenate use .=
4 $var .= 'string';
5
6 # For adding the VALUES use +=
7 $var += 1;