.=优先级大于+; $y = 4;
$z = 3;
$x = $y+$y . $z;//4+4=8然后跟3等于83
$w = $y+$y .= $z;//43+43=86,.=的优先级大于+,所先将$y值赋值为43了
echo $x;//输出为83
echo "<br />";
echo $w;//输出为86
$z = 3;
$x = $y+$y . $z;//4+4=8然后跟3等于83
$w = $y+$y .= $z;//43+43=86,.=的优先级大于+,所先将$y值赋值为43了
echo $x;//输出为83
echo "<br />";
echo $w;//输出为86
2017-07-03
访问test.php时报错:You don't have permission to access / on this server。解决方案:1.找到httpd.conf里的这段 Options FollowSymLinks AllowOverride None Order deny,allow Deny from all
改为
Options Indexes FollowSymLinks
AllowOverride None
2.将httpd-vhosts.conf中的documentroot也改为相对应的路径
3.重启服务
改为
Options Indexes FollowSymLinks
AllowOverride None
2.将httpd-vhosts.conf中的documentroot也改为相对应的路径
3.重启服务
2017-07-02