php-db | 2002091
Date: 09/04/02
- Next message: :B nerdy: "[PHP-DB] [mysql] query atomicity"
- Previous message: DL Neil: "Re: [PHP-DB] mysql_fetch_assoc question"
- Next in thread: Pierre-Alain Joye: "Re: [PHP-DB] Using a variable as a variable name"
- Reply: Pierre-Alain Joye: "Re: [PHP-DB] Using a variable as a variable name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
I am wanting to use the value in a variable as a variable name. I know it is
possible but do not remember how to do it - what function to call.
Example
$section1 = "SECTION 1";
$section2 = "SECTION 2";
// I want to have a for loop that will call these variables.
eg for ($i=1;$i<3;$i++)
//Now I want to call $section1, and $section2 by using $i
which will first equal 1 and then 2.
Cheers
Steve
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: :B nerdy: "[PHP-DB] [mysql] query atomicity"
- Previous message: DL Neil: "Re: [PHP-DB] mysql_fetch_assoc question"
- Next in thread: Pierre-Alain Joye: "Re: [PHP-DB] Using a variable as a variable name"
- Reply: Pierre-Alain Joye: "Re: [PHP-DB] Using a variable as a variable name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

