Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB