JustinB Posted March 14, 2008 Share Posted March 14, 2008 can someone explain what -> is and its meaning example $display->header(); Link to comment https://forums.phpfreaks.com/topic/96228-can-someone-explain-what-is/ Share on other sites More sharing options...
dotBz Posted March 14, 2008 Share Posted March 14, 2008 i guess it's used to identify a member variable or function of a class Link to comment https://forums.phpfreaks.com/topic/96228-can-someone-explain-what-is/#findComment-492594 Share on other sites More sharing options...
BlueSkyIS Posted March 14, 2008 Share Posted March 14, 2008 it is used to invoke a class function or to retrieve a public class variable. Link to comment https://forums.phpfreaks.com/topic/96228-can-someone-explain-what-is/#findComment-492596 Share on other sites More sharing options...
Coreye Posted March 15, 2008 Share Posted March 15, 2008 can someone explain what -> is and its meaning example $display->header(); Read this thread: http://www.phpfreaks.com/forums/index.php/topic,95867.0.html. Link to comment https://forums.phpfreaks.com/topic/96228-can-someone-explain-what-is/#findComment-492642 Share on other sites More sharing options...
Xeoncross Posted March 15, 2008 Share Posted March 15, 2008 $obj->method(); = a method call A method = a function of an object A object = a collection of methods/functions (among other things) <?php //A function function my_function { print 'hi'; } //Run function my_function(); //A class with a function (called a method) class my_object { function my_method() { print 'hi'; } } $obj = new my_object; //Run method object->my_method(); ?> Link to comment https://forums.phpfreaks.com/topic/96228-can-someone-explain-what-is/#findComment-492644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.