Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Concatenate| Add Two Strings in PHP
Sponsered Link
#1
I want to know how many ways are there to add or concatenate two strings in PHP.
Reply
#2
To concatenate tow strings in PHP you have to use the dot (.) opperator. See the example below to understand better:

echo "string one" . " string two";

The result will be as:
string one string two
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)