Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how concat variable 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 #variable #php
ADD COMMENT
Topic
Name
2+3 =