Answers for "php concatenate variable name"

PHP
0

php concat variable and string

<?php
  $name = "Paul";	
  $age = 26;

  echo "My name is {$name}, I'm {$age} years old ";
Posted by: Guest on March-24-2021
-1

php concatenate two variables

$string = "the color is ";
$string .= "red";

echo $string; // gives: the color is red
Posted by: Guest on May-23-2020

Code answers related to "php concatenate variable name"

Browse Popular Code Answers by Language