note 121816 deleted from language.variables.variable by cmb
| From: | cmb@php.net | Date: | Sun, 12 Jan 2020 08:23:52 +0000 |
| Subject: | note 121816 deleted from language.variables.variable by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213856@lists.php.net to get a copy of this message | ||
Note Submitter: Gawish
----
// if "String" take the same $variable
$a = "We"; // $a will echo "We" .. and "We" will take $We;
$We = "are"; // $$a will echo "are" .. and "are" will take $are;
$are = "love"; // $$$a will echo "love" .. and "love" will take
$love;
$love = "php"; // $$$$a will echo "php" .. and "php" will take
$php;
$php = "lang"; // $$$$$a will echo "lang" .. and "lang" will not
take any variables;
echo $a; //Returns We [1]
echo $$a; //Returns are [2]
echo $$$a; //Returns love [3]
echo $$$$a; //Returns php [4]
echo $$$$$a; //Returns lang [5]