[php] Strings

taekwondokid42

New Member
Messages
268
Reaction score
0
Points
0
How can I add text to a string of text?

Example:

$asdf = 'asdf';

if($x == $y){
$asdf = $asdf + 'arg!';
}

The result I want is for $asdf to = 'asdfarg!', however, when I use the '+' operator, it just seems to reset the variable. Is there a way I can append a variable?
 
Top