Dav*_*nks 4 php syntax
两者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');
rai*_*ace 5
没有区别。这些是“语言结构”。从语法上讲,这意味着它们可以带或不带大括号使用。一个例子是echo声明。
echo
echo("hello");并且echo "hello";是一样的
echo("hello");
echo "hello";
归档时间:
13 年,3 月 前
查看次数:
146 次
最近记录: