Home >Backend Development >PHP Tutorial >In PHP, there is no instantiation of objects and direct call to function. What is it called? It's been a long time since I forgot about it.

In PHP, there is no instantiation of objects and direct call to function. What is it called? It's been a long time since I forgot about it.

WBOY
WBOYOriginal
2016-08-18 09:16:121105browse

In PHP, there is no instantiation of objects and direct call to function. What is it called? What is the syntax? It’s been a long time since I forgot it.

It means that there must be a function in the class, which can be directly called externally without instantiating the class,

I used to come here, but I forgot about it after a long time..

Sorry for the trouble..Thank you!!!

Reply content:

In PHP, there is no instantiation of objects and direct call to function. What is it called? What is the syntax? It’s been a long time since I forgot it.

It means that there must be a function in the class, which can be directly called externally without instantiating the class,

I used to come here, but I forgot about it after a long time..

Sorry for the trouble..Thank you!!!

The public static function in the class can be called through the :: symbol

CLASS::METHOD() static method

This is called a static method

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn