Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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);
?>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #String #Concatenation #PHP
ADD COMMENT
Topic
Name
3+6 =