Tom*_*Tom 4 php variables period quote
正如标题所说,为什么这些时期?如
require("mod/".$modarrayout."/bar.php");
Run Code Online (Sandbox Code Playgroud)
显然它是因为变量是在字符串之间,但是引号不应该处理它吗?只是想知道澄清进一步的编码
在PHP中,句点是连接运算符.将句点放在告诉PHP连接"mod/"到$modarrayout然后将结果字符串连接到"/bar.php".看这个页面:
http://www.php.net/manual/en/language.operators.string.php