Answers for "plus operator php for string"

PHP
0

string operator in php

<?php

$x = 'Kinjal';
$x.= 'Suryavanshi'; //concatanation assignment
echo $x." Have a good day!";    //concatanation

?>
Posted by: Guest on September-03-2021
0

php string plus 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 August-03-2020

Browse Popular Code Answers by Language