Adding to a String in PHP
Using the concatenation operator ' . '
you can add to a string.
See the example:
<?php
$a = 'Hello ';
$b = $a . 'World!';
echo $b;
?>
Code execution result:
'Hello Word!'
Using the concatenation operator ' . '
you can add to a string.
See the example:
<?php
$a = 'Hello ';
$b = $a . 'World!';
echo $b;
?>
Code execution result:
'Hello Word!'