String Operators
String Operators
There are two operators. The first is the
concatenation operator ('.'), which returns the concatenation of its
right and left arguments. The second is the concatenating assignment
operator (''), which appends the argument on the right side to
the argument on the left side. Please read for more information.
string``.=Assignment
Operators
Voorbeeld: String Concatenating
<?php
$a = "Hello ";
$b = $a . "World!"; // now $b contains "Hello World!"
var_dump($b);
$a = "Hello ";
$a .= "World!"; // now $a contains "Hello World!"
var_dump($a);
?>
String typeString functions