+ 1

How will you concatenate two strings in php?

25th Jul 2017, 5:24 PM
Mansoor. E
Mansoor. E - avatar
3 Respuestas
+ 9
You can join two strings together using the dot ( .) concatenation operator. For example: echo $s1 . $s2
25th Jul 2017, 5:38 PM
Dev
Dev - avatar
+ 1
echo "string" . " another string";
25th Jul 2017, 5:38 PM
voidneo
0
$Output = $String.$string2; Or $Output = "Hi "."my name is Josh l";
25th Jul 2017, 5:55 PM
josh mizzi
josh mizzi - avatar