note 83657 added to language.types.string
| From: | nullhility at gmail dot com | Date: | Fri, 06 Jun 2008 07:40:35 +0000 |
| Subject: | note 83657 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140167@lists.php.net to get a copy of this message | ||
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 ;).
----
Server IP: 117.104.160.194
Probable Submitter: 124.185.84.113
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- https://master.php.net/note/edit/83657
Del: integrated -- https://master.php.net/note/delete/83657/integrated
Del: useless -- https://master.php.net/note/delete/83657/useless
Del: bad code -- https://master.php.net/note/delete/83657/bad+code
Del: spam -- https://master.php.net/note/delete/83657/spam
Del: non-english -- https://master.php.net/note/delete/83657/non-english
Del: in docs -- https://master.php.net/note/delete/83657/in+docs
Del: other reasons-- https://master.php.net/note/delete/83657
Reject -- https://master.php.net/note/reject/83657
Search -- https://master.php.net/manage/user-notes.php