View Full Version : Printing Variables
12-21-2003, 08:29 PM
how do you print variable names rather then the content the variable contains?
12-21-2003, 09:39 PM
$str = "this is inside the variable";
echo $str.' $str';
If you have a variable inside single quotes, it won't parse (if that's the right word) :)
will show "This is inside the variable"
will show $str
If you don't know the variable name (for example, you have a an array and are looping through it), it's impossible, but it's probably solvable another way. If Nightfire's method didn't solve your problems, post some code.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.