Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP Concatenate String

$var1 = "hello";
$var2 = "world";

$concat = $var1.' '.$var2; // $concat ='hello world' (with single quote)

$concat = "$var1 $var2"; // $concat ='hello world' ( with double quote)
 
PREVIOUS NEXT
Tagged: #PHP #Concatenate #String
ADD COMMENT
Topic
Name
1+8 =