phprockers-logo

Static method in php

1. Using "static" keyword to declare the static methods.

2. We can access the static methods without creating an instantiation(object) of the class.


3. $this is not available inside the static methods.

0 comments:

Post a Comment