Answers for "how to print string plus variable in php"

PHP
0

how to print string plus variable in php

$variableName = 'Ralph';
echo 'Hello '.$variableName.'!';
Posted by: Guest on December-29-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

Code answers related to "how to print string plus variable in php"

Browse Popular Code Answers by Language