• PHP Help
  • How to concatenate two strings in PHP?

<?php
$name = "Abraham";
$string = "is a cool";
echo $name . $string;
// 0r
echo "$name$string";
//or
$text = $name;
$text .= $string;
echo $text;
?>

Write a Reply...