MySQL Forums
Forum List  »  PHP

Re: Creating a variable variable name
Posted by: Barry Galbraith
Date: November 24, 2010 04:35PM

I can't do what you ask with a straight variable name, but if you put them into an array like

description[0]
description[1]
....

Then getting them out is a matter of
for ($i=0;$i<count($variable);++$1){
echo $variable[$i];
}

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
Re: Creating a variable variable name
November 24, 2010 04:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.