php-db | 2002091
Date: 09/04/02
- Next message: Matthew Newby: "[PHP-DB] Re: pg_fetch_result returns something other than boolean???"
- Previous message: Andrey Hristov: "Re: [PHP-DB] [mysql] query atomicity"
- In reply to: Stephen Rhodes: "[PHP-DB] Using a variable as a variable name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hello,
You can find syntax description in the documentation (variable variables section)
$myvar1 = "MYVAR1 CONTENT";
$myvar2 = "MYVAR2 CONTENT";
$i = 0;
$myvar = 'myvar'.++$i;
echo "\n";
echo $$myvar;
echo "\n";
$myvar = 'myvar'.++$i;
echo "\n";
echo $$myvar;
echo "\n";
can do it
hth
pa
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Matthew Newby: "[PHP-DB] Re: pg_fetch_result returns something other than boolean???"
- Previous message: Andrey Hristov: "Re: [PHP-DB] [mysql] query atomicity"
- In reply to: Stephen Rhodes: "[PHP-DB] Using a variable as a variable name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

