Hi Reader's,
Welcome to FindNerd, today we are going to discuss combining two strings together in PHP.
The PHP concatenate(.) is used for combining two string values and create one string.
you can see bellow example:
<?php
//firstly create a variable name is $F_name
$F_name="sammar";
//another create a variable name is $L_name
$L_Name="shrivastav";
//here use (.) for combining string to together
echo $F_name." ".$L_Name;
?>
here another example:
<?php
//firstly create a variable name is $Txt1
$Txt1="Hello";
$Txt1 .="Mac";
//here use (.) for combining string to together
echo $Txt1;
?>
output will come of above example following:
Hello Mac
output will come of above example following:
sammar shrivastav
0 Comment(s)