Answers for "how to add a string to another string in php"

PHP
6

php append string

<?php
$a = "Hello ";
$b = $a . "World!"; // now $b contains "Hello World!"

$a = "Hello ";
$a .= "World!";     // now $a contains "Hello World!"
?>
Posted by: Guest on February-12-2020
1

append variable into string php

echo "'$animal'";
Posted by: Guest on January-27-2021

Code answers related to "how to add a string to another string in php"

Browse Popular Code Answers by Language