note 83657 deleted from language.types.string by googleguy
| From: | googleguy@php.net | Date: | Sat, 19 Jan 2013 03:47:24 +0000 |
| Subject: | note 83657 deleted from language.types.string by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193249@lists.php.net to get a copy of this message | ||
Note Submitter: nullhility at gmail dot com
----
It's also valuable to note the following:
<?php
${date("M")} = "Worked";
echo ${date("M")};
?>
This is perfectly legal, anything inside the braces is executed first, the return value then becomes
the variable name. Echoing the same variable variable using the function that created it results in
the same return and therefore the same variable name is used in the echo statement. Have fun ;).