note 119991 added to language.variables.variable
| From: | kasperkh dot kh at gmail dot com | Date: | Thu, 06 Oct 2016 00:30:44 +0000 |
| Subject: | note 119991 added to language.variables.variable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206780@lists.php.net to get a copy of this message | ||
I've found this useful, particularly inside functions;
<?php
$string = "foo";
${$string}_bar = "";
// Creates the empty string $foo_bar
?>
----
Server IP: 72.52.91.14
Probable Submitter: 185.78.69.59
----
Manual Page -- http://php.net/manual/en/language.variables.variable.php
Edit -- https://master.php.net/note/edit/119991
Del: integrated -- https://master.php.net/note/delete/119991/integrated
Del: useless -- https://master.php.net/note/delete/119991/useless
Del: bad code -- https://master.php.net/note/delete/119991/bad+code
Del: spam -- https://master.php.net/note/delete/119991/spam
Del: non-english -- https://master.php.net/note/delete/119991/non-english
Del: in docs -- https://master.php.net/note/delete/119991/in+docs
Del: other reasons-- https://master.php.net/note/delete/119991
Reject -- https://master.php.net/note/reject/119991
Search -- https://master.php.net/manage/user-notes.php