PHPiSean Posted February 13, 2010 Share Posted February 13, 2010 alright everyone. I learned PHP from w3schools.com and not once did they mention what "->" means. I do have an understanding of alot of PHP, but they did not explain what -> does. Sorry for the noobish question, but I'd hate it be something really important. :-\ Quote Link to comment https://forums.phpfreaks.com/topic/191987-need-help-for-a-noobish-question/ Share on other sites More sharing options...
premiso Posted February 13, 2010 Share Posted February 13, 2010 The -> is used in the context of objects. It can call a method inside of an object or an object property. You generally see it used in Object Oriented Programming. So: $object->property; Or: $object->method(); Quote Link to comment https://forums.phpfreaks.com/topic/191987-need-help-for-a-noobish-question/#findComment-1011933 Share on other sites More sharing options...
jl5501 Posted February 13, 2010 Share Posted February 13, 2010 This is the object operator and is used to address members of an object. This could be a member function of a class, or an item from a database, if mysql_fetch_object was used. Quote Link to comment https://forums.phpfreaks.com/topic/191987-need-help-for-a-noobish-question/#findComment-1011934 Share on other sites More sharing options...
jl5501 Posted February 13, 2010 Share Posted February 13, 2010 Perhaps this will help http://www.phpeveryday.com/articles/PHP-Operators-Object-Operator-P311.html Quote Link to comment https://forums.phpfreaks.com/topic/191987-need-help-for-a-noobish-question/#findComment-1011935 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.