add two variables in php code example
Example 1: add more data to variable php
$a = "Hello ";
$a .= "World!";
Example 2: addition in php
<?php
$x=15;
$y=30;
$z=$x+$y;
echo "Sum: ",$z;
?>
Example 3: assign multiple variables php
[$var1, $var2, $var3, $var4, $var5] = array(1, 2, 3, 4, 5);