Help with Variable Variables in Array

From: Date: Mon, 20 Feb 2006 16:49:24 +0000
Subject: Help with Variable Variables in Array
Groups: php.db 
Request: Send a blank email to php-db+get-41288@lists.php.net to get a copy of this message
Hi, all. I can't quite figure out how to call the contents of a variable variable in a mysql_fetch_array result and was hoping someone could help . . . inside the "fetch all rows" while loop, i have the following: $right_row = "$" . myrow . "['" . $type . "_title']"; ($type is assigned elsewhere, but in this case = 'article') which outputs: $myrow['article_title'] So far so good, but i can't seem to output the value of this variable by printing $$right_row Any suggestions? TIA, Andrew

« previous php.db (#41288) next »