Results of 1 - 10 of about 406 for I (0.001 sec.)
- switch 8687
- « continue match » PHP Manual 制御構造 switch switch (PHP 4, PHP 5, PHP 7, PHP 8) switch 文は、同
... じ式を用いてIF文を並べたのに似ています。 同じ変数を異なる値と比較 ... 実行したいと 思うことがしばしばあるかと思います。 switch 文は、まさにこのためにあるのです。 注意 : 他の言 ... 語とは違って、 continue 命令は switch にも適用され、 break と同じ動作を ... します。 ループの内部で switch を使用しており、 外側のループの処理を続行させた ...
-
https://man.plustar.jp/php/control-structures.switch.html
- [similar]
- for 8337
- « do-while foreach » PHP Manual 制御構造 for for (PHP 4, PHP 5, PHP 7, PHP 8) for ループは、PHPで
... 10 までの数を表示します。 <?php /* 例 1 */ for ( $i = 1 ; $i <= 10 ; $i ++) { echo $i ; } /* 例 2 */ f ... or ( $i = 1 ; ; $i ++) { if ( $i > 10 ) { break; } echo $i ... ; } /* 例 3 */ $i = 1 ; for (; ; ) { if ( $i > 10 ) { break; } echo ... $i ; $i ++; } /* 例 4 */ for ( $i = 1 , $j = 0 ; $i < ...
-
https://man.plustar.jp/php/control-structures.for.html
- [similar]
- オブジェクトの要素数を数える 8124
- « Countable OuterIterator » PHP Manual Countable オブジェクトの要素数を数える Countable::count (
... ble::count — オブジェクトの要素数を数える 説明 public Countable::count (): int このメソッドは、 Countab ... この関数にはパラメータはありません。 戻り値 要素数を int 型で返します。 注意 : 戻り値は int 型にキャストさ ... 例1 Countable::count() の例 <?php class myCounter implements Countable { private $count = 0 ; public f ... unction count () { return ++ $this -> count ; } } $count ...
-
https://man.plustar.jp/php/countable.count.html
- [similar]
- 相対指定文字列から DateInterval を作成する 8124
- « DateInterval::__construct DateInterval::format » PHP Manual DateInterval 相対指定文字列から Da
... teInterval を作成する DateInterval::createFromDateStri ... ng (PHP 5 >= 5.3.0, PHP 7, PHP 8) DateInterval::createFromDateString — 相対指定文字列から ... DateInterval を作成する 説明 public static DateInterval: ... :createFromDateString ( string $datetime ): DateInterval | false 通常の ...
-
https://man.plustar.jp/php/dateinterval.createfromdatestring.html
- [similar]
- 例 7911
- « 定義済み定数 YAZ 関数 » PHP Manual YAZ 例 例 PHP/YAZ はターゲット(Z-Associations)との接続を保持
... し続けます。 正の整数で特定の接続のIDを表します。 以下のスクリプトは、API の並列検索機能 ... $_REQUEST [ query ]; $num_hosts = count ( $host ); if (empty( $query ) || count ( $host ) == 0 ) { echo ... '<form method="get"> <input type="checkbox" name="host[]" value="bagel.ind ... exdata.dk/gils" /> GILS test <input type="checkbox" name="host[ ...
-
https://man.plustar.jp/php/yaz.examples.html
- [similar]
- Basic usage 7800
- « 例 HRTime\PerformanceCounter » PHP Manual 例 Basic usage Basic usage The example illustrates t
... he basic StopWatch class usage 例1 Measure several code bl ... ocks execution and get the total <?php $c = new HRTime \ StopWa ... tch ; $c -> start (); /* measure this code block execution */ for ( $i = 0 ; $i < 1024 ... * 1024 ; $i ++); $c -> stop (); $elapsed0 = $c -> getLastElaps ...
-
https://man.plustar.jp/php/hrtime.example.basic.html
- [similar]
- DateTimeImmutable クラス 6912
- « DateTime::sub DateTimeImmutable::add » PHP Manual Date/Time DateTimeImmutable クラス DateTimeI
... はじめに 日付と時刻を表現します。 このクラスは DateTime と同じ振る舞いをします。 但し、 DateTime::modify ... ドが呼び出された時を除きます。 クラス概要 class DateTimeImmutable implements DateTimeInterface { /* 継承し ... た定数 */ const string DateTimeInterface::ATOM = "Y-m-d\TH:i:sP" ; cons ... t string DateTimeInterface::COOKIE = "l, d-M-Y H:i:s T" ; ...
-
https://man.plustar.jp/php/class.datetimeimmutable.html
- [similar]
- DateTime クラス 6767
- « 日付/時刻 の算術 DateTime::add » PHP Manual Date/Time DateTime クラス DateTime クラス (PHP 5 >
... 日付と時刻を表現するクラスです。 このクラスは、 DateTimeImmutable と同じ振る舞いをします。 但し、 DateTim ... e::modify() のような、 オブジェクトそのものを変更するメソッ ... び出された時を除きます。 このクラスの代わりに、 DateTimeImmutable を使うことを推奨します。 クラス概要 cla ... ss DateTime implements DateTimeInterface { /* 継承した定数 * ...
-
https://man.plustar.jp/php/class.datetime.html
- [similar]
- DateTimeInterface インターフェイス 6767
- « DateTimeImmutable::sub DateTime::diff » PHP Manual Date/Time DateTimeInterface インターフェイス
... DateTimeInterface インターフェイス (PHP 5 >= 5.5.0, PHP 7 ... , PHP 8) はじめに DateTimeInterface は、 DateTime や DateTimeImmutable を引 ... ザー側で作ることはできません。 インターフェイス概要 interface DateTimeInterface { /* 定数 */ const strin ... g ATOM = "Y-m-d\TH:i:sP" ; const string COOKIE = "l, d-M-Y H:i:s T" ; c ...
-
https://man.plustar.jp/php/class.datetimeinterface.html
- [similar]
- do-while 6767
- « while for » PHP Manual 制御構造 do-while do-while (PHP 4, PHP 5, PHP 7, PHP 8) do-while ループ
... が各反復の 最初ではなく最後に行われること以外は、 while ループと 全く同じです。通常の while ループとの主 ... な差は、 do-while ループは最低1回の実行を保証されていることです。 ... 一方、通常の while ループは、実行されないかもしれません (論理式は各 ... である場合はループの実行は すぐに終わります)。 do-while ループの構文は次の一つのみです。 <?php $i = 0 ; ...
-
https://man.plustar.jp/php/control-structures.do.while.html
- [similar]