Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use the _ _ callStatic method in php

Shulou Source: shulou.com Published: 2022-05-31 11:00:34 09月23日 Update

This article mainly explains how to use the _ _ callStatic method in php. The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use the _ _ callStatic method in php.

Description

1. It will be called automatically when the static method to be called does not exist or the permissions are insufficient.

2. Same as the _ _ call () method, take the method name and array as parameters.

Grammar

_ _ callStatic ($funcname, $arguments)

Parameters.

The name of the method called by $funcname String.

The parameters that $arguments Array takes when calling the method.

Example

Tags: Methods parameters learning content same name example that is ideas situations theoretically recipients arrays articles times more permissions legal names knowledge knowledge points Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi OPPO Reno Apple MySQL