What is the meaning of the dots (.)

What is the meaning of the dots (.) in the following line:

echo "Days: ". $days. " Hours: " . $hours . " Minutes: " . $mins;
Henk Oegema [ Do, 11 Oktober 2007 11:43 ] [ ID #1842504 ]

Re: What is the meaning of the dots (.)

> What is the meaning of the dots (.) in the following line:
>
> echo "Days: ". $days. " Hours: " . $hours . " Minutes: " . $mins;

From http://www.php.net/manual/en/language.types.string.php :

"Strings may be concatenated using the '.' (dot) operator. Note that the '+'
(addition) operator will not work for this. Please see String operators for
more information."
Mike Rogers [ Do, 11 Oktober 2007 11:53 ] [ ID #1842505 ]

Re: What is the meaning of the dots (.)

ShutEye wrote:

>> What is the meaning of the dots (.) in the following line:
>>
>> echo "Days: ". $days. " Hours: " . $hours . " Minutes: " . $mins;
>
> From http://www.php.net/manual/en/language.types.string.php :
>
> "Strings may be concatenated using the '.' (dot) operator. Note that the
> '+' (addition) operator will not work for this. Please see String
> operators for more information."
Thanks ;)
Henk Oegema [ Do, 11 Oktober 2007 12:54 ] [ ID #1842507 ]
PHP » alt.php » What is the meaning of the dots (.)

Vorheriges Thema: Glossary - First Glitch
Nächstes Thema: How to pass variable to operating system.