DataRater Posted August 8, 2008 Share Posted August 8, 2008 What does the =& do? I would have put just an = sign there. $captcha =& new captcha($CAPTCHA_CONFIG); Link to comment https://forums.phpfreaks.com/topic/118781-solved-captcha-amp-new-captchacaptcha_config/ Share on other sites More sharing options...
ignace Posted August 8, 2008 Share Posted August 8, 2008 $foo = 'bar'; $bar =& $foo; $bar = 'foo'; echo $foo; // returns foo $bar =& $foo $bar references $foo any changes made to $bar have effect on $foo Link to comment https://forums.phpfreaks.com/topic/118781-solved-captcha-amp-new-captchacaptcha_config/#findComment-611605 Share on other sites More sharing options...
DarkWater Posted August 8, 2008 Share Posted August 8, 2008 Yeah, it's the reference operator. Almost remotely like pointers in C and C++, but not the same. >_> Link to comment https://forums.phpfreaks.com/topic/118781-solved-captcha-amp-new-captchacaptcha_config/#findComment-611607 Share on other sites More sharing options...
Jabop Posted August 8, 2008 Share Posted August 8, 2008 @DarkWater Almost remotely like something, but not the same? Haha, makes perfect sense http://us2.php.net/references Link to comment https://forums.phpfreaks.com/topic/118781-solved-captcha-amp-new-captchacaptcha_config/#findComment-611621 Share on other sites More sharing options...
DarkWater Posted August 8, 2008 Share Posted August 8, 2008 I don't want to say that they're like pointers because they're not. They sort of act like pointers. Almost. Sort of. >_> *Dies* Link to comment https://forums.phpfreaks.com/topic/118781-solved-captcha-amp-new-captchacaptcha_config/#findComment-611626 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.