RE: [PHP-DB] Making a variable out of variables?
| From: | John W. Holmes | Date: | Thu, 30 Nov 2000 22:49:41 +0000 |
| Subject: | RE: [PHP-DB] Making a variable out of variables? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5471@lists.php.net to get a copy of this message | ||
$cheese = "cheddar" . $row[1] . $row[2];
---John Holmes...
-----Original Message-----
From: Mattias Johansson [mailto:smart@smartsmartsmart.com]
Sent: Thursday, December 28, 2000 4:17 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Making a variable out of variables?
Thanks for all the responses on my previous question! Anyhow - I decided to
follow Douglas suggestion and scrap IP checking, and instead use cookies -
so I have run into another problem, of course.
How can I set a variable to be a set of variables? Let me show you:
$Row[1] = 3
$Row[2] = 5
$cheese = cheddar$row[1]$row[2]
And I want it to return cheddar35. Can this be done? If so, ho do I set the
$cheese variable?
Thanks for your help - I've learned lots of PHP so far!
/Mattias
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net