Posted On: Feb 22, 2018
Static method is a member of class that is called directly by class name without creating an instance.In PHP uou can create a static method by using static keyword.
Example:
class A { public static function sayHello() { echo 'hello Static'; } } A::sayHello();
Never Miss an Articles from us.
T_PAAMAYIM_NEKUDOTAYIM is scope resolution operator used as :: (double colon) .Basically, it used to call static methods/variables of a Class...
In PHP == is equal operator and returns TRUE if $a is equal to $b after type juggling and === is Identical operator and return TRUE if $a is equal to $b, and they are of the same data type...