yacaph Posted May 5, 2008 Share Posted May 5, 2008 Hi Experts, I'm fairly new to PHP and have not been able to find any info on "->" as in $this->_Link. Is it an operator? Are there other means of accomplishing the same thing? Thanks, Joseph Link to comment https://forums.phpfreaks.com/topic/104256-what-does-mean/ Share on other sites More sharing options...
flyhoney Posted May 5, 2008 Share Posted May 5, 2008 I would take a look at classes in PHP. http://us3.php.net/manual/en/language.oop5.basic.php Link to comment https://forums.phpfreaks.com/topic/104256-what-does-mean/#findComment-533723 Share on other sites More sharing options...
rhodesa Posted May 5, 2008 Share Posted May 5, 2008 In Object Oriented speak, it's used to access properties and methods inside an object. But if you've never used objects before, I would give the site in the last post a read and this one too: http://devzone.zend.com/node/view/id/638 Link to comment https://forums.phpfreaks.com/topic/104256-what-does-mean/#findComment-533725 Share on other sites More sharing options...
DarkWater Posted May 5, 2008 Share Posted May 5, 2008 It's used to access class methods and properties, and this is used in reference to the current object. Link to comment https://forums.phpfreaks.com/topic/104256-what-does-mean/#findComment-533729 Share on other sites More sharing options...
phorman Posted May 5, 2008 Share Posted May 5, 2008 While you may be new to PHP, if you know anything about Visual Basic, javascript or other OOP (Object Oriented Programming), its the same as writing: this._Link or in Excel Macros: activesheet.select; Link to comment https://forums.phpfreaks.com/topic/104256-what-does-mean/#findComment-533731 Share on other sites More sharing options...
revraz Posted May 5, 2008 Share Posted May 5, 2008 http://www.phpfreaks.com/forums/index.php/topic,95867.0.html Link to comment https://forums.phpfreaks.com/topic/104256-what-does-mean/#findComment-533733 Share on other sites More sharing options...
yacaph Posted May 6, 2008 Author Share Posted May 6, 2008 Thanks to all for your helpful responses. I can see that since the period was already used for concatenation, something was needed as a class qualifier. Link to comment https://forums.phpfreaks.com/topic/104256-what-does-mean/#findComment-534253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.