note 10181 added to Variables

From: Date: Sun, 17 Dec 2000 18:29:48 +0000
Subject: note 10181 added to Variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-8808@lists.php.net to get a copy of this message
For those of us stuck using php3, for whatever reason, and needing to use variable accessed by reference rather than by value here's a little quark that may help. define an array something like: $ProdCode = array(0 => "$Code0", "$Code1",....); Then variables names of the form: Code0, Code1, ... cand be displayed using echo, (print nor printf will not work), as $ProdCode[i]. NOT the best solutions, but it may get you through until you can get to php4. http://www.php.net/manual/language.variables.php

« previous php.notes (#8808) next »