How can the methods in the species be passed in this way? Where are the instructions in the PHP manual?

Source: Internet
Author: User
Tags autoloader
How can a method in a class be passed like this? Where are the instructions in the PHP manual?
PHP Code
  
   Class autoloader{public    static function Myloader ($classname)    {        $class _file = Strtolower ($classname). ". PHP ";        if (file_exists ($class _file)) {            require_once ($class _file);}}    } Passing classes and methods in the form of arrays, element one is the class name, element two is the method name//method is static method Spl_autoload_register (Array ("AutoLoader", "Myloader")); $test = new Test () ;


Where do the PHP manuals pass classes and methods in the form of arrays?
PHP Code
  
   Passing classes and methods in the form of arrays, element one is the class name, element two is the method name//method is static method Spl_autoload_register (Array ("AutoLoader", "Myloader"));



------Solution--------------------
Callback? The method name of the class (object) must be passed this way, from PHP4.
As for the manual, I did not see the description. However, many of the conventions of PHP are not explained in the manual.
After all, the handbook is not textbook
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.