Saturday, January 1, 2011

php - String Concatenation Operator

The string concatenation operator, . is like + for numbers.

<?php
$str='the';
$str.='n';
echo $str;    //prints out "then"
?>

No comments:

Post a Comment