On Friday 03 May 2002 02:43, Jackson Miller wrote:
I want to do something along the lines of:
$type = basic;
$$type_user = jaxn;
echo $basic_user;
and have the output be jaxn.
I have tried everything I can think of, and I have looked in all my
books.
I know how to:
$type = basic;
Maybe an array would be more appropriate.
e.g.
$name[$i] =
.
.
-Stewart
-Original Message-
From: seriousj [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2001 12:09
To: [EMAIL PROTECTED]
Subject: [PHP] Variables in variable names
Hello,
I need some help (newbie).
I have some variable
The info is stored in the variables intitally by information entered by a
user on a webpage, can you have the browser store the info in an array and
have it passed by a form post command?
Taylor, Stewart [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Maybe an
As an alternative you can use associative arrays
$i = 0;
$i = 1;
$i = 2;
$i = 3;
$name[$i];
-Original Message-
From: seriousj [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 4:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables in variable names
Hello,
I need some help
with 3 entries.
-Stewart
-Original Message-
From: seriousj [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2001 12:20
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variables in variable names
The info is stored in the variables intitally by information entered by a
user on a webpage, can you have
Thanks, that worked great!
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
At 09.05.01 23:08, you wrote:
Hello,
I need some help (newbie).
I have some variable names with the form:
$name_1
$name_2
$name_3
$name_4...
I want to access them by doing something like this:
$i=0
$name_$i
This doesn't work, how do I include another variable in the name of a
variable?.
What
7 matches
Mail list logo