Php Concatenate Variables To Function

[Solved] Php Concatenate Variables To Function | Php - Code Explorer | yomemimo.com
Question : concat 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

Question : php concat variable and string

Answered by : christian-icwbcen3kvoo

<?php $name = "Paul"; $age = 26; echo "My name is {$name}, I'm {$age} years old ";

Source : | Last Update : Wed, 31 Mar 21

Question : php how to concatenate strings

Answered by : expensive-echidna-0pcavw1f95je

$data1="The colour is ";
$data2="red";
$result=$data1.$data2; // The colour is red

Source : https://stackoverflow.com/questions/8336858/how-can-i-combine-two-strings-together-in-php | Last Update : Fri, 24 Jun 22

Answers related to php concatenate variables to function

Code Explorer Popular Question For Php