Home >Backend Development >PHP Tutorial >今日遇到的面试题,面试十个九个错

今日遇到的面试题,面试十个九个错

WBOY
WBOYOriginal
2016-06-13 11:38:50953browse

今天遇到的面试题,面试十个九个错

本帖最后由 vcshellcode 于 2013-10-14 11:49:39 编辑 $a = 1;
$b = $a + $a + $a++;
echo $b;  //输出3

echo "
";
$d = 1;
$c = $d + $d++;
echo $c;  //输出3
?>

大部分人答案:
$b=5;  //错的
$c=3;

这里有人知道为什么两个结果是一样的嘛
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn