Joining and Disassembling Strings : String Concatenation « String « PHP






Joining and Disassembling Strings

 
<?php 

$string1 = "Hello"; 

$string2 = " World!"; 

$string3 = $string1 . $string2; 
?>
  
  








Related examples in the same category

1.A period (.) character is used to combine two separate variables into a single string
2.A string and an integer value are added, and the result is an integer value.
3.Combining a string and a number
4.Concatenating strings together
5.Concatenation operator ('.')