Date: 11/02/00
- Next message: hennink <email protected>: "Re: [PHP] Trick or Treat! Bush or Gore! Saddam Hussein or The Greatest Prosperity any one country ever had!"
- Previous message: Brian Clark: "Re: [PHP] Large text fields"
- Next in thread: Matt McClanahan: "Re: [PHP] Creating a variable name using a variable"
- Reply: Matt McClanahan: "Re: [PHP] Creating a variable name using a variable"
- Maybe reply: Adam Warner: "RE: [PHP] Creating a variable name using a variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I'm new to the list. Hopefully this is not too frequently asked...
Now I realise I should probably be using an array. But it would be nice to
occasionally create a variable name from a variable.
For example:
I have 3 variables $url1, $url2 and $url3.
I have another variable $i (which takes one of the values 1, 2 or 3).
If $i=2 is there any way I can refer to $url2 using by combining "$url" and
$i?
Many thanks,
Adam
PS: To the developers of PHP many thanks. PHP is awesomely fun and powerful.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: hennink <email protected>: "Re: [PHP] Trick or Treat! Bush or Gore! Saddam Hussein or The Greatest Prosperity any one country ever had!"
- Previous message: Brian Clark: "Re: [PHP] Large text fields"
- Next in thread: Matt McClanahan: "Re: [PHP] Creating a variable name using a variable"
- Reply: Matt McClanahan: "Re: [PHP] Creating a variable name using a variable"
- Maybe reply: Adam Warner: "RE: [PHP] Creating a variable name using a variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

