note 57684 modified in language.variables.variable by danbrown

From: Date: Wed, 24 Jun 2009 16:54:04 +0000
Subject: note 57684 modified in language.variables.variable by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157400@lists.php.net to get a copy of this message
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 --was-- A static variable variable sounds like an oxymoron and indeed cannot exist. If you define: $var = "ciao"; static $$var = 0; you get a parse error. Regards, Fabio http://php.net/manual/en/language.variables.variable.php

« previous php.notes (#157400) next »