Re: changing the name of a variable by another variable.

From: Date: Tue, 22 Jul 2003 21:48:45 +0000
Subject: Re: changing the name of a variable by another variable.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156343@lists.php.net to get a copy of this message
On Jul 22, 2003, "Tony Crockford" claimed that: |I really am having a difficult day. | |I want to do an incrementing while loop that will echo out the values of |$variable1 , $variable2, $variable3 which exist previously. | |so how do I get the incrementing number onto the word variable? to make |a new variable that matches thename of the existing ones.. | |I tried echo $variable$increment ; but $variable doesn't exist alone so |all I get is $increment. | |I'm not sure what I should be looking for in the manual - google's not |much help either. | |anyone give me a clue? | |TIA | |Tony | Would an array be too difficult to implement into your code? Jeff -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this message should conform to RFC 1855.

« previous php.general (#156343) next »