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.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-18 09:16:12
Original
1143 people have browsed it

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

Related labels:
php
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template