Results of 1 - 4 of about 4 for endwhile (0.001 sec.)
- while | PHP 8.3 12389
- while (PHP 4, PHP 5, PHP 7, PHP 8) while ループは、PHPで最も簡単なタイプのループです。 このループは、CのWHILEループと同様の動作をします。 while ループの基本形は次のようになります。 while (式) 文 while 文の意味は簡単です。 while 文は、式の値
... 、 以下に示す別の構文を用いることにより、同じ while ループの中に複数の文をグループ化することができます。 while (式): 文 ... endwhile; 次の例は同じです。どちらも 1 から 10 までの数を出力します。 <?php $i = 1 ; while ( $i <= 10 ) { echo $i ++ . "\n" ; /* 出 ... 置加算) */ } 上の例の出力は以下となります。 1 2 3 4 5 6 7 8 9 10 <?php $i = 1 ; while ( $i <= 10 ): echo $i . "\n" ; $i ++; endwhile; 上の例の出力は以下となります。 1 2 3 4 5 6 7 8 9 10 他のマニュアルの関連ページ Python controlflow Python compound_stmts L ...
-
https://man.mtool.work/php/8.3/control-structures.while.html
- キーワードのリスト | PHP 8.3 8728
- キーワードのリスト これらのキーワードは、PHP では特別な意味があります。これらのいくつかは 関数やメソッドのようなものを表し、いくつかは定数のようなものを表す、 といったようになっていますが、実際にはそうではありません。実際には、 これらは言語
... class clone const continue declare default die() do echo else elseif empty() enddeclare endfor endforeach endif endswitch endwhile eval() exit() extends final finally fn (PHP 7.4 以降) for foreach function global goto if implements include include_once ...
-
https://man.mtool.work/php/8.3/reserved.keywords.html
- 制御構造に関する別の構文 | PHP 8.3 7914
- 制御構造に関する別の構文 (PHP 4, PHP 5, PHP 7, PHP 8) PHPは、いくつかの制御構造、つまり、 if 、 while 、 for 、 foreach 、 switch 、 declare に関する別の構文を提供します。 各構造において開き波括弧をコロン(:)、閉じ波括弧をそれぞれ endif; , endwhile
...
-
https://man.mtool.work/php/8.3/control-structures.alternative-syntax.html
- パーサートークンの一覧 | PHP 8.3 7914
- パーサートークンの一覧 PHP 言語の種々の部分は、内部的に トークン で表現されています。 不正なトークンのシーケンスが含まれるコードスニペットの場合、 Parse error: syntax error, unexpected token "==", expecting "(" in script.php on line 10." の
... int ) endforeach foreach , 別の構文 T_ENDIF ( int ) endif if , 別の構文 T_ENDSWITCH ( int ) endswitch switch , 別の構文 T_ENDWHILE ( int ) endwhile while , 別の構文 T_ENUM ( int ) enum Enumerations (PHP 8.1.0 以降で利用可能) T_END_HEREDOC ( int ) ヒアド ...
-
https://man.mtool.work/php/8.3/tokens.html
PREV
1
NEXT