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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:36:32852browse

此代码运行后为何会输出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