Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

concat two variables 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 #variables #php
ADD COMMENT
Topic
Name
4+6 =