Add More Data To Variable Php

[Solved] Add More Data To Variable Php | Php - Code Explorer | yomemimo.com
Question : php append string

Answered by : graceful-gorilla

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

Source : https://www.php.net/manual/en/language.operators.string.php | Last Update : Wed, 19 Feb 20

Question : add more data to variable php

Answered by : zany-zebra-s2fr7g430of2

$a = "Hello ";
$a .= "World!"; 

Source : | Last Update : Thu, 27 Aug 20

Answers related to add more data to variable php

Code Explorer Popular Question For Php