Answers for "php concat string with variable"

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
0

String Concatenation in PHP

phpCopy<?php
$mystring1 = "This is the first string. ";
$mystring2 = "This is the second string";
$finalString = sprintf("%s %s", $mystring1, $mystring2);
echo($finalString);
?>
Posted by: Guest on April-23-2021
0

php string concat

$name [] = ['abhi']
Posted by: Guest on May-11-2021
-1

String Concatenation in PHP

phpCopy<?php
$mystring1 = "This is the first string. ";
$mystring2 = "This is the second string.";
$mystring1 .= $mystring2;
echo($mystring1);
?>
Posted by: Guest on April-23-2021

Code answers related to "php concat string with variable"

Browse Popular Code Answers by Language