Difference between functions

static function is a function whose scope is static. I mean, a static function remains same for ALL the objects of a class. In system memory, the function is stored at a single place and all the objects access that function memory.

‘function static‘ is another type of function that makes the scope of its internal variables as static. This type of function DO NOT initialize its variables during each call…!!
The scope of internal variables of function becomes static. Rest of the class variables scope remains the same (auto).