String concatenation

String concatenation:
String concatenation uses the period(.) to append one string of characters to another. The simplest way to do this is as follows:

String Concatenation
String Concatenation
echo "You have".$msgs."message";
the output from the code line is:
You have 5 messages.
Translate »