Is it better to use require_once('filename.php') or require_once 'filename.php';

后端 未结 5 1825
遇见更好的自我
遇见更好的自我 2021-01-01 09:27

Is this just a stylistic difference, or does using require_once(\'filename.php\') vs require_once \'filename.php\' have actual load/efficiency diff

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-01 09:47

    include, include_once, require and require_once are not functions, they are statements, that is why you should not use ().

    Also, consider this from php.net:

    
    

提交回复
热议问题