阅读(1774) (27)

PHP 避免嵌入式赋值

2015-11-04 15:59:09 更新

在程序中避免下面例子中的嵌入式赋值:
不使用这样的方式:

while ($a != ($c = getchar())){
    process the character
}