Answers for "add more data to variable 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

Browse Popular Code Answers by Language