Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

concat in php

$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: #concat #php
ADD COMMENT
Topic
Name
8+5 =