1.

Code to combine or concatenate two variables in php

Answer»

Below are TWO SAMPLE to combine two variable sample 1 will work significantly faster. To try it we take large sets of DATA and we will see that concatenation WORKS significantly faster than variable substitution.
$var1 = 'Interview Question On';
$var2 = 'getproductprice.com';
Sample1:-
$VAR 3 = $var1.$var2;

Sample2:-
$var 3 = $var1$var2;



Discussion

No Comment Found