PHP : Scope Resolution Operator (::)
Scope Resolution Operator is useful when you want to refer functions and variable from base classes or the classes that don’t have any instance.
1
2
3
4
5
6
class A {
function example()
{
echo "I am in function A::example()";
}
}
1
A::example(); //Output will be : I am in function A::example()
Want to have your say? just login


Be first to show your opinion !!!