How to use the _ _ call method in php
Today, the editor will share with you the relevant knowledge points about how to use the _ _ call method in php. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.
Description
1. When the method to be called does not exist or the permissions are insufficient, it will be called automatically.
2. First, you need to override the _ _ call method. The _ _ call method has two parameters, method and param, corresponding to the real method name and parameters.
Application scenario
You can use this method when you need to use a unified invocation method, but there are many interfaces.
Example