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

WBOY
Release: 2016-06-13 12:34:27
Original
763 people have browsed it

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

本帖最后由 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;

这里有人知道为什么两个结果是一样的嘛
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!