PHP


PHP Support

PHP OOPS difference between calling the class methods statically and by class instantiation with example and walk through


Before going further letme tell you class instantiation is just used to access all the content inside that class, say class methods,attributes, variables. constants can be accessed statically

To use the instantiation, Key thing is  just remember for instantiation we use this symbol -> (pointer) and for anything you call statically we use :: scope resolution operator.

Basically we have two methods to call the class methods