autoload functions in php

后端 未结 5 825
难免孤独
难免孤独 2020-12-07 03:35

Is it possible to autoload functions?

What I have is I have written functions distributed over different files named after the function name, so what I need is to au

5条回答
  •  爱一瞬间的悲伤
    2020-12-07 04:07

    Use:

    include("path");
    

    or

    require_once("path");
    

    References:

    http://php.net/manual/en/function.include.php

    http://php.net/manual/en/function.require-once.php

提交回复
热议问题