$ i = $ i ++ [英] $i = $i++

查看:73
本文介绍了$ i = $ i ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在alt.php中问了一个问题,他们遇到了一个带有问题的问题。

algorytm。它包含了以下内容:


$ i = $ i ++;


他们在某个地方抢过的一些示例代码。在循环中,预期$ i到

增量。我解释了为什么我认为它不会 - 因为它没有。但是,

i想确保我给出了一个有效的答案。


任何人都有输入?

someone asked a question in alt.php about a problem they were having with an
algorytm. it contained something to the effect of:

$i = $i++;

some example code they''d snatched somewhere. in a loop, the expected $i to
increment. i explained why i thought it would not - as it does not. however,
i want to make sure i gave a valid answer.

anyone have input?

推荐答案

i =


i ++;


他们在某个地方抢过的一些示例代码。在循环中,预期的
i++;

some example code they''d snatched somewhere. in a loop, the expected


i到

增量。我解释了为什么我认为它不会 - 因为它没有。但是,

i想确保我给出了有效答案。


任何人都有输入?
i to
increment. i explained why i thought it would not - as it does not. however,
i want to make sure i gave a valid answer.

anyone have input?


这篇关于$ i = $ i ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆