variable name: is it allowed in PHP?

From: Date: Wed, 15 Nov 2000 18:49:25 +0000
Subject: variable name: is it allowed in PHP?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25487@lists.php.net to get a copy of this message
The last release of photoseek contains the following piece of code (excerpt from API.inc): function commadelim_list ($type) { global $sql; static $__commadelim_$type; ...... And there is: Parse error: parse error, expecting ','' or ';'' in /www/www.us.edu.pl/photoseek/API.inc on line 485 This is: static $__commadelim_$type; Is it allowed to construct variable names this way? PHP 4.0.3 thinks it's not allowed, but what was the idea of the photoseek author and how to fix it? Maciek

« previous php.general (#25487) next »