两者include('file.php')和include 'file.php'工作似乎可以互换。
include('file.php')
include 'file.php'
有谁知道这两种语法之间是否有任何区别?表现?在特定版本中引入?
我知道如果你要写include $_SERVER['DOCUMENT_ROOT'] . '/file.php';它可能看起来更清晰include($_SERVER['DOCUMENT_ROOT'] . '/file.php');
include $_SERVER['DOCUMENT_ROOT'] . '/file.php';
include($_SERVER['DOCUMENT_ROOT'] . '/file.php');
php syntax
php ×1
syntax ×1