Home  >  Article  >  Backend Development  >  此代码运作后为何会输出5

此代码运作后为何会输出5

WBOY
WBOYOriginal
2016-06-13 12:36:30803browse

此代码运行后为何会输出5?

<br />
$a = 1;<br />
$b = &$a;<br />
$c = (++$a) + ($a++);<br />
var_dump($c);<br />

为何会输出5?

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
Previous article: 一些PHP面试标题 Next article: 使用PHP读取资料