怎么理解 谢谢!
phpcn_u1282
phpcn_u1282 2017-03-28 18:18:41
0
2
1401

<?php


$x = 5;

$y = 6;


$foo = $x++ + $x--;

$bar = ++$y + ++$x;

$cup = $x-- + $y--;

$paper = ++$x + $x++;

$water = $y-- + $x--;

echo $y--.'<br>';//等于5

echo $x--.'<br>';//等于6

//这里怎么理解。。。

echo $water.'<br>';//等于13

echo $paper.'<br>';//等于12

echo $water + $paper;//等于25

?>


phpcn_u1282
phpcn_u1282

reply all(2)
数据分析师

How to understand? Thank you! -PHP Chinese website Q&A-How to understand Thank you! -PHP Chinese website Q&A

Let’s take a look and learn.

 

I don’t know

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!