Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

concaténer 2 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: #variables #php
ADD COMMENT
Topic
Name
8+2 =