Answers for "=+ in php"

PHP
1

i+= in php

<?php

$a = 3;
$a += 5; // sets $a to 8, as if we had said: $a = $a + 5;
$b = "Hello ";
$b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";

?>
Posted by: Guest on July-21-2021
1

php +=

$my_var = "foo";
$my_var .= " bar";
echo($my_var);
// foo bar
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language