0 Dick Montage Posted June 29, 2005 Share Posted June 29, 2005 Intrigued to know this too! It's a hard thing to google for... Link to comment Share on other sites More sharing options...
0 Dick Montage Posted June 29, 2005 Share Posted June 29, 2005 Intrigued to know this too! It's a hard thing to google for... Link to comment Share on other sites More sharing options...
0 Garry Posted June 29, 2005 Share Posted June 29, 2005 This starts to answer it but you'll be expected to know a little bit about OO programming. Link to comment Share on other sites More sharing options...
0 Sphinx Myth Posted June 29, 2005 Share Posted June 29, 2005 This is probably a silly question, but what does -> do in PHP? 586137107[/snapback] Hi. In PHP, -> is used to access to member vars and member functions of a class: <? // PHP 4 class test { var $foo; var $bar; function show( ) { echo $this->foo, "\n", $this->bar; } } $class = new test( ); $class->foo = "Hi"; // $foo in class "test" = "Hi" $class->bar = "Yo"; // $bar in class "test" = "Yo" $class->show( ); // function show( ) in class "test" => "Hi\nYo" ?> Link to comment Share on other sites More sharing options...
0 Hefty Posted June 29, 2005 Author Share Posted June 29, 2005 Excellent...Thanks for the replies! Link to comment Share on other sites More sharing options...
Question
Dick Montage
Intrigued to know this too! It's a hard thing to google for...
Link to comment
Share on other sites
4 answers to this question
Recommended Posts