I think you're misunderstanding my question. I'm pulling
$user_data["username"] from a databse so the string my user name is
$user_data["username"]" is exactly as the database hands it to me. I
know how to simply concat information.
-Justin
-----Original Message-----
From: "Jack Dempsey" <[EMAIL PROTECTED]>
Sent: Monday, May 07, 2001 12:55 PM
To: King, Justin; [EMAIL PROTECTED]
Subject: RE: [PHP] Variable question
you can do it a couple ways...
echo "my user name is " . $user_data["username"];
or
echo "my username is ${user_data["username"]}";
-----Original Message-----
From: King, Justin [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable question
How can I evaluate a variable in a string? For example if I have a
string defined as "my user name is $user_data["username"]", how do I
echo that string and have php evaluate $user_data["username"].
Thanks in advance..
-Justin
--
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]
--
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]