How to join or concatenate string variables

How to join or concatenate string variables


# Create the strings to be joined as an example #
$string1 = "Lets join these"
$string2 = " strings together"

# Simply use the symbol to join the variables, note that if the variables are numbers rather than strings you will create a sum rather than a join #
$string1 $string2
# result : Lets join these strings together #


Comments