unidox Posted June 10, 2008 Share Posted June 10, 2008 I have a few questions about OOP. 1) In oop, whats the difference between => and ->? 2) In oop, whats the difference between a public and private function. 3) In oop, whats :: used for? Thanks Link to comment https://forums.phpfreaks.com/topic/109639-help/ Share on other sites More sharing options...
rarebit Posted June 10, 2008 Share Posted June 10, 2008 1) In oop, whats the difference between => and ->? The first is used with associative arrays, the latter to access elements of classes. 2) In oop, whats the difference between a public and private function. Private means it can only be accessed from within the object... 3) In oop, whats :: used for? It's all about namespace, dude... Link to comment https://forums.phpfreaks.com/topic/109639-help/#findComment-562432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.