Dynamic Variable names
| From: | David Rice | Date: | Sun, 09 Mar 2003 12:34:33 +0000 |
| Subject: | Dynamic Variable names | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-26200@lists.php.net to get a copy of this message | ||
Just a quick question about dynamic variables
would like to end up with a variable called
$tips_1
$tips_2
...
$tips_n
where "n" is the value of the variable $sid
i have tried
$tips . '$sid';
and other variants, but i can't get one that doesn't return a parse error or T_VARIABLE error.
_________________________________________________________________
Worried what your kids see online? Protect them better with MSN 8 http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059