note 57684 deleted from language.variables.variable by cmb
| From: | cmb@php.net | Date: | Sun, 12 Jan 2020 08:33:20 +0000 |
| Subject: | note 57684 deleted from language.variables.variable by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213866@lists.php.net to get a copy of this message | ||
Note Submitter: fabio at noc dot soton dot ac dot uk
----
A static variable variable sounds like an oxymoron and indeed cannot exist. If you define:
<?php
$var = "ciao";
static $$var = 0;
?>
you get a parse error.
Regards,
Fabio