How can I tell if a function is being called statically in PHP?

shadyds

New Member
Let's say I have a \[code\]FooClass\[/code\] with a \[code\]bar()\[/code\] method. Inside of the \[code\]bar()\[/code\] method, is there any way to tell if it's being called statically or not, so I can treat these two cases differently? \[code\]FooClass::bar();$baz = new FooClass();$baz->bar();\[/code\]
 
Back
Top