Concat Two Variables Php

[Solved] Concat Two Variables Php | Php - Code Explorer | yomemimo.com
Question : concaténer 2 variables php

Answered by : joyous-jaguar-ctnnk5onv031

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

Source : | Last Update : Sat, 13 Aug 22

Answers related to concat two variables php

Code Explorer Popular Question For Php