note 83299 deleted from language.operators.string by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:17:51 +0000 |
| Subject: | note 83299 deleted from language.operators.string by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189845@lists.php.net to get a copy of this message | ||
Note Submitter: mehea
----
I thought string operators were for use with strings or strings and numbers. But that is incorrect.
You can use the '.' operator to concatenate two numbers, as follows:
echo 1 . 2;
I assume that behind the scenes the 1 and 2 are converted to strings to allow the concatenation.
What triggers the conversion? I'll guess the dot operator.