PDA

View Full Version : Php question



Jackboy
12-07-2008, 10:04 PM
$blah .= "lol<br>";
$blah .= "beans";
echo $blah;


I never heard of or used .= until today....

Does it just add to the array so that when you echo the array for me it would display

lol
beans

Invent
12-07-2008, 10:05 PM
All it does is instead of setting a new variable it just adds the new string to the end of the existing variable.

Jackboy
12-07-2008, 10:09 PM
Thats pretty wkd then :)

Source
12-07-2008, 10:58 PM
Yea, its a nice little thing to know. And simple.

Want to hide these adverts? Register an account for free!