我知道您可以在一次调用中分配多个变量,如下所示:
$varOne = $varTwo = "some value";
但是有没有办法在一次调用中附加到多个变量(字符串)?
显然这是不正确的语法,但我在想这样的事情:
$varOne = "he's ";
$varTwo = "she's ";
$varOne, $varTwo .= "insane";
echo $varOne; // Outputs "he's insane"
echo $varTwo; // Outputs "she's insane"