• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A fairly dumb question...

#3
[eluser]Negligence[/eluser]
Basically, yes.

--> is used for objects (instantiations of a class), while :: accesses a classes' methods directly without the need for an object. You can use :: to access non-static methods, but static methods must be called with ::.

I would recommend reading the OOP section in the PHP documentation. This is pretty basic knowledge you should have.


Messages In This Thread
A fairly dumb question... - by El Forum - 03-03-2008, 08:58 AM
A fairly dumb question... - by El Forum - 03-03-2008, 09:11 AM
A fairly dumb question... - by El Forum - 03-03-2008, 09:16 AM
A fairly dumb question... - by El Forum - 03-03-2008, 12:10 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.