PHP dynamic class loading

后端 未结 4 1888
深忆病人
深忆病人 2021-02-05 23:09

Lets say that I have an array that I want to convert to a value object.

My value object class is as follows:

/* file UserVO.php*/
 class UserVO
 {
    pu         


        
4条回答
  •  一个人的身影
    2021-02-05 23:20

    It appears that include_once()'s and require_once()'s performance is pretty bad.

    My suggestion:

    Kill all "require_once" and "include_once" and create an autoloader. Register this implementation

提交回复
热议问题