Re: muli-variable variables ? (something like that)

From: Date: Wed, 08 May 2002 23:04:48 +0000
Subject: Re: muli-variable variables ? (something like that)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96702@lists.php.net to get a copy of this message
At 08.05.2002 22:22, you wrote:
I have a loop that is using $g to loop a table, and $r to loop a content, and I want to make a $ for every line that is printet by combining them someway, like "$team$g$r = $tnme;" so there will be a $ with $team32 = "Something" and a $team34 = "Somethingelse"; and so on, I think I've done something similiar before, but I can't remember how I did it, nor find the file I did it in.. :) Håkan it´s late(early) this morning, forgive me if I´m wrong, but I believe it´s something like
$team="something" $g=41 $r=92 $x=$team.$g; $y=$$x.$r; echo $$y should give "something4192" but there are aother ways if you use PHP4, but that´s for the "modern_guys" ;) HTH Oliver

« previous php.general (#96702) next »