Results of 1 - 10 of about 371 for While (0.002 sec.)
- while | PHP 8.3 14286
- while (PHP 4, PHP 5, PHP 7, PHP 8) while ループは、PHPで最も簡単なタイプのループです。 このループは、CのWHILEループと同様の動作をします。 while ループの基本形は次のようになります。 while (式) 文 while 文の意味は簡単です。 while 文は、式の値
... 値が変わった場合でもループの実行はその反復が終わるまで停止しません。 (PHPによるループ内の文の実行が1回分の反復に相当します) while 式の値がはじめから false の 場合は、内部の文は一回も実行されません。 if 文と同様に、波括弧で複数の文を囲うか、 以下に示す別 ... の構文を用いることにより、同じ while ループの中に複数の文をグループ化することができます。 while (式): 文 ... endwhile; 次の例は同じです。どちらも 1 から 10 まで ... の数を出力します。 <?php $i = 1 ; while ( $i <= 10 ) { echo $i ++ . "\n" ; /* 出力される値は、足される前の $iの値です。 (後置加算) */ } 上の例の出力は以下となりま ...
-
https://man.mtool.work/php/8.3/control-structures.while.html
- do-while | PHP 8.3 12605
- do-while (PHP 4, PHP 5, PHP 7, PHP 8) do-while ループは、論理式のチェックが各反復の 最初ではなく最後に行われること以外は、 while ループと 全く同じです。通常の while ループとの主な差は、 do-while ループは最低1回の実行を保証されていることです
... 。 一方、通常の while ループは、実行されないかもしれません (論理式は各反復の最初でチェックされるので、 最初から値が false である場合はループの実 ... 行は すぐに終わります)。 do-while ループの構文は次の一つのみです。 <?php $i = 0 ; do { echo $i ; } while ( $i > 0 ); 上の例の出力は以下となります。 0 上記の ... り ( $i は 0 より大きくない)、ループの実行が終了するためです。 優れたCプログラマは、コードブロック中での実行中止が可能な do-while ループの別の使用法について熟知している かもしれません。 これは、 do-while (0)でコードを括り、 break 文を使用する方法です。 ...
-
https://man.mtool.work/php/8.3/control-structures.do.while.html
- cubrid_get_db_parameter — Returns the CUBRID database parameters | PHP 8.3 7948
- cubrid_get_db_parameter (PECL CUBRID >= 8.3.0) cubrid_get_db_parameter — Returns the CUBRID database parameters 説明 function cubrid_get_db_parameter ( resource $conn_identifier ): array This function returns the CUBRID database parameters,
... occur. REPEATABLE READ CLASS with REPEATABLE READ INSTANCES (5) Another transaction T2 cannot update the schema of table A while transaction T1 is viewing table A. Transaction T1 may experience phantom read for the record R that was inserted by anothe ... D CLASS with READ COMMITTED INSTANCES (or CURSOR STABILITY) (4) Another transaction T2 cannot update the schema of table A while transaction T1 is viewing table A. Transaction T1 may experience R read (non-repeatable read) that was updated and committ ... SS with READ UNCOMMITTED INSTANCES (3) Default isolation level. Another transaction T2 cannot update the schema of table A while transaction T1 is viewing table A. Transaction T1 may experience R' read (dirty read) for the record that was updated but ...
-
https://man.mtool.work/php/8.3/function.cubrid-get-db-parameter.html
- break | PHP 8.3 7482
- break (PHP 4, PHP 5, PHP 7, PHP 8) break は、現在実行中の for , foreach , while , do-while , switch 構造の実行を終了します。 break では、オプションの引数で ネストしたループ構造を抜ける数を指定することができます。 この引数のデフォルトは 1 で
... できます */ } echo " $val \n" ; } 上の例の出力は以下となります。 one two three four オプションの引数を使う例: <?php $i = 0 ; while (++ $i ) { switch ( $i ) { case 5 : echo "At 5\n" ; break 1 ; /* switch 構造のみを抜けます */ case 10 : echo "At 10; quitt ... ing\n" ; break 2 ; /* switch と while を抜けます */ default: break; } echo " $i \n" ; } 上の例の出力は以下となります。 1 2 3 4 At 5 5 6 7 8 9 At 10; quitting 他 ...
-
https://man.mtool.work/php/8.3/control-structures.break.html
- 定義済み定数 | PHP 8.3 7200
- 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 SIMDJSON_ERR_CAPACITY ( int ) This parser can't support a document that big.
... RROR ( int ) The JSON document was too deep (too many nested objects and arrays) SIMDJSON_ERR_STRING_ERROR ( int ) Problem while parsing a string SIMDJSON_ERR_T_ATOM_ERROR ( int ) Problem while parsing an atom starting with the letter 't' SIMDJSON_ERR ... _F_ATOM_ERROR ( int ) Problem while parsing an atom starting with the letter 'f' SIMDJSON_ERR_N_ATOM_ERROR ( int ) Problem while parsing an atom starting with ... the letter 'n' SIMDJSON_ERR_NUMBER_ERROR ( int ) Problem while parsing a number SIMDJSON_ERR_UTF8_ERROR ( int ) The input is not valid UTF-8 SIMDJSON_ERR_UNINITIALIZED ( int ) The parse ...
-
https://man.mtool.work/php/8.3/simdjson.constants.html
- 制御構造 | PHP 8.3 6452
- 制御構造 目次 はじめに if else elseif/else if 制御構造に関する別の構文 while do-while for foreach break continue switch match declare return require include require_once include_once goto throw try...catch finally 他のマニュアルの関連ページ
...
-
https://man.mtool.work/php/8.3/language.control-structures.html
- EvLoop::invokePending — Invoke all pending watchers while resetting their pendi... 6267
- EvLoop::invokePending (PECL ev >= 0.2.0) EvLoop::invokePending — Invoke all pending watchers while resetting their pending state 説明 public function EvLoop::invokePending (): void Invoke all pending watchers while resetting their pending s
...
-
https://man.mtool.work/php/8.3/evloop.invokepending.html
- oci_fetch_array — クエリの次の行を連想配列あるいは数値添字配列で返す | PHP 8.3 6170
- oci_fetch_array (PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0) oci_fetch_array — クエリの次の行を連想配列あるいは数値添字配列で返す 説明 function oci_fetch_array ( resource $statement , int $mode = OCI_BOTH | OCI_RETURN_NULLS ): array | false ク
... _ERROR ); } $stid = oci_parse ( $conn , 'SELECT department_id, department_name FROM departments' ); oci_execute ( $stid ); while (( $row = oci_fetch_array ( $stid , OCI_BOTH )) != false ) { // 連想配列の指標として大文字のカラム名を使用します echo $row ... ENT_QUOTES ), E_USER_ERROR ); } $stid = oci_parse ( $conn , 'SELECT id, description FROM mytab' ); oci_execute ( $stid ); while (( $row = oci_fetch_array ( $stid , OCI_NUM )) != false ) { echo $row [ 0 ] . "<br>\n" ; echo $row [ 1 ]-> read ( 11 ) . " ... ENT_QUOTES ), E_USER_ERROR ); } $stid = oci_parse ( $conn , 'SELECT id, description FROM mytab' ); oci_execute ( $stid ); while (( $row = oci_fetch_array ( $stid , OCI_ASSOC )) != false ) { echo $row [ 'ID' ] . "<br>\n" ; echo $row [ 'DESCRIPTION' ]- ...
-
https://man.mtool.work/php/8.3/function.oci-fetch-array.html
- continue | PHP 8.3 5985
- continue (PHP 4, PHP 5, PHP 7, PHP 8) continue は、ループ構造において現在の繰り返しループ の残りの処理をスキップし、条件式を評価した後に 次の繰り返しの最初から実行を続けるために使用されます。 注意 : PHP では、 continue の動作に関しては swit
... ーが偶数の組をスキップします continue; } echo $value . "\n" ; } 上の例の出力は以下となります。 one three five <?php $i = 0 ; while ( $i ++ < 5 ) { echo "Outer\n" ; while ( 1 ) { echo "Middle\n" ; while ( 1 ) { echo "Inner\n" ; continue 3 ; } echo "This ...
-
https://man.mtool.work/php/8.3/control-structures.continue.html
- mysqli::multi_query — データベース上でひとつ以上のクエリを実行する | PHP 8.3 5985
- mysqli::multi_query mysqli_multi_query (PHP 5, PHP 7, PHP 8) mysqli::multi_query -- mysqli_multi_query — データベース上でひとつ以上のクエリを実行する 説明 オブジェクト指向型 public function mysqli::multi_query ( string $query ): bool 手続き
... SQL サーバーは PHP とは非同期に残りのクエリの処理を続け、 結果を取得できる状態にします。 複数のクエリを処理するために、 do-while ループ を使うことを推奨します。 全てのクエリの実行が完了し、結果を PHP が取得するまで、 接続はビジー状態になります。 全ての ... $mysqli -> multi_query ( $query ); do { /* PHP 側に結果セットを保存します */ if ( $result = $mysqli -> store_result ()) { while ( $row = $result -> fetch_row ()) { printf ( "%s\n" , $row [ 0 ]); } } /* 区切り線を出力します */ if ( $mysqli -> more_res ... ults ()) { printf ( "-----------------\n" ); } } while ( $mysqli -> next_result ()); 手続き型 <?php mysqli_report ( MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT ); $link = mysqli_ ...
-
https://man.mtool.work/php/8.3/mysqli.multi-query.html