Skip to content
Home
Cloud
Web Design Tools
Html
Css
Php
Photoshop
Java
Core Java
Ejb
Servlet
Jsp
Mobile
Android
Ios
Windows
Symbian
News
Search for:
Home
/
How can you concatenate two or more strings?
How can you concatenate two or more strings?
CuckooRadio Editorial Team
2022-11-09T02:11:12-06:00
To concatenate two string variables together, use the dot (.) operator.
Example:
Copy to Clipboard
$string1 = "Hi! i am"; $string2 = "50"; echo $string1 . " " . $string2;
Output:
Copy to Clipboard
Hi! i am 50