.=
As you can probably see, .= just adds to the existing variable.PHP Code:$variable = 'hi';
echo $variable; // returns hi
$variable .= ", what's your name?";
echo $variable // returns hi, what's your name?
// All in all, when reading this in your browser, the return would be: hihi, what's your name?
/////////////////////////////////////////////
// However, if we use the code below:
$variable = 'hi';
$variable .= ", what's your name?";
echo $variable // returns hi, what's your name?
// The end result is as expected hi, what's your name?
As for the last line "substr_replace" simply replaces the text in a certain part of the string. (http://uk3.php.net/substr_replace)
Edit: Oh yeah, it means what you said in your post, pft what a pointless explanation.






Reply With Quote

