BahBah Posted December 20, 2009 Share Posted December 20, 2009 Hello I have often seen people use &$var or =& What is the & signifying please ? Thank you Quote Link to comment https://forums.phpfreaks.com/topic/185789-using/ Share on other sites More sharing options...
p2grace Posted December 20, 2009 Share Posted December 20, 2009 The ampersand in front of a variable instructs apache to pass the variable's reference instead of the variable's value. Quote Link to comment https://forums.phpfreaks.com/topic/185789-using/#findComment-981027 Share on other sites More sharing options...
ChemicalBliss Posted December 20, 2009 Share Posted December 20, 2009 For examples of Referenced Variables see: http://www.php.net/manual/en/language.references.php Quote Link to comment https://forums.phpfreaks.com/topic/185789-using/#findComment-981049 Share on other sites More sharing options...
ignace Posted December 20, 2009 Share Posted December 20, 2009 The ampersand in front of a variable instructs apache to pass the variable's reference instead of the variable's value. It instructs PHP not Apache Quote Link to comment https://forums.phpfreaks.com/topic/185789-using/#findComment-981051 Share on other sites More sharing options...
BahBah Posted December 21, 2009 Author Share Posted December 21, 2009 Thank you for your replies. Very helpful Quote Link to comment https://forums.phpfreaks.com/topic/185789-using/#findComment-981741 Share on other sites More sharing options...
GoneNowBye Posted December 21, 2009 Share Posted December 21, 2009 so its a pointer? Quote Link to comment https://forums.phpfreaks.com/topic/185789-using/#findComment-981746 Share on other sites More sharing options...
ignace Posted December 21, 2009 Share Posted December 21, 2009 No it's not a pointer it's a reference but not as you may know them check http://www.php.net/manual/en/language.references.php for a detailed explanation Quote Link to comment https://forums.phpfreaks.com/topic/185789-using/#findComment-981763 Share on other sites More sharing options...
GoneNowBye Posted December 21, 2009 Share Posted December 21, 2009 Thanks Quote Link to comment https://forums.phpfreaks.com/topic/185789-using/#findComment-981768 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.