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 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. 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 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 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 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? 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 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 Link to comment https://forums.phpfreaks.com/topic/185789-using/#findComment-981768 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.