note 110938 deleted from language.operators.string by aharvey
| From: | aharvey@php.net | Date: | Tue, 08 Jan 2013 02:34:46 +0000 |
| Subject: | note 110938 deleted from language.operators.string by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192790@lists.php.net to get a copy of this message | ||
Note Submitter: K.Alex
----
I don't know if it is hidden feature or not, but it was discovered during school lesson when
one child wrote by mistake this string and used commas for concatenation.
This example seems to work as for PHP 5.2, and output looks like
Dear John Smith! Huh, this date 2012-12-27 looks good for you!
<?php
$name = 'John Smith!';
echo 'Dear ' , $name , ' Huh, this date ' , date('Y-m-d') , '
', looks . ' good for you!';
?>