LoginSignup
1
1

More than 5 years have passed since last update.

世界のナベアツをプログラミングしてみたら少しツボった話

Posted at

PHPで作成しました。

for($i==0; $i<=100; $i++){
    if ($i%3 == 0 and $i <> 0) {
        echo 'アホ' . '<br>';
    }else{
        echo $i . '<br>';
    }
}

ところが、なぜか0が表示されないのです。
試してみるとどうも0を格納した変数を出力する際は
何も表示されないようだ。

1
1
7

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1