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 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 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 :-) Link to comment https://forums.phpfreaks.com/topic/48004-solved-double-dollar-sign/#findComment-234621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.