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

后端 未结 5 1791
遇见更好的自我
遇见更好的自我 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:34

    Pear Coding Standards say :

    "include_once and require_once are statements, not functions. Parentheses should not surround the subject filename."

    Source : http://pear.php.net/manual/en/standards.including.php

提交回复
热议问题