maliary Posted April 21, 2007 Share Posted April 21, 2007 hi, I have seen this in some code - $$res - what does the double dollar sign mean? as compared to the $res. Maliary Quote Link to comment https://forums.phpfreaks.com/topic/48004-solved-double-dollar-sign/ Share on other sites More sharing options...
fert Posted April 21, 2007 Share Posted April 21, 2007 http://us.php.net/manual/en/language.variables.variable.php Quote Link to comment https://forums.phpfreaks.com/topic/48004-solved-double-dollar-sign/#findComment-234592 Share on other sites More sharing options...
taith Posted April 21, 2007 Share Posted April 21, 2007 $hello='hia'; $var='hello'; echo $$var; //outputs hia basically, it just makes the string, the variable name :-) in that case, when you echo the $var, it makes the 'hello' into the variable, and unloads its data :-) Quote Link to comment https://forums.phpfreaks.com/topic/48004-solved-double-dollar-sign/#findComment-234621 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.