codecamp

PHP 避免嵌入式赋值

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

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


PHP true/false和0/1判断
PHP 错误返回检测规则
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定