« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 64 for union (0.001 sec.)
Ds\Set::union — Creates a new set using values from the current instance and an... 13626
Ds\Set::union (PECL ds >= 1.0.0) Ds\Set::union — Creates a new set using values from the current instance and another set 説明 public function Ds\Set::union ( Ds\Set $set ): Ds\Set Creates a new set that contains the values of the current i ... h the current instance. 戻り値 A new set containing all the values of the current instance as well as another set . 参考 » Union on Wikipedia 例 例1 Ds\Set::union() example <?php $a = new \Ds\Set ([ 1 , 2 , 3 ]); $b = new \Ds\Set ([ 3 , 4 , 5 ]); var_ ... dump ( $a -> union ( $b )); ?> 上の例の出力は、 たとえば以下のようになります。 object(Ds\Set)#3 (5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) ... [3]=> int(4) [4]=> int(5) } 他のマニュアルの関連ページ DuckDB Union Functions Linux JM nfsservctl(2) DuckDB Union Type DuckDB Combining Schemas DuckDB Avro Extension DuckDB CSV Import Tips ...
https://man.mtool.work/php/8.3/ds-set.union.html
Ds\Map::union — Creates a new map using values from the current instance and an... 12994
Ds\Map::union (PECL ds >= 1.0.0) Ds\Map::union — Creates a new map using values from the current instance and another map 説明 public function Ds\Map::union ( Ds\Map $map ): Ds\Map Creates a new map that contains the pairs of the current in ... th the current instance. 戻り値 A new map containing all the pairs of the current instance as well as another map . 参考 » Union on Wikipedia 例 例1 Ds\Map::union() example <?php $a = new \Ds\Map ([ "a" => 1 , "b" => 2 , "c" => 3 ]); $b = new \Ds\Map ... ([ "b" => 3 , "c" => 4 , "d" => 5 ]); print_r ( $a -> union ( $b )); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Map Object ( [0] => Ds\Pair Object ( [key] => a [value] => ... r Object ( [key] => c [value] => 4 ) [3] => Ds\Pair Object ( [key] => d [value] => 5 ) ) 他のマニュアルの関連ページ DuckDB Union Functions Linux JM nfsservctl(2) DuckDB Union Type DuckDB Combining Schemas DuckDB Data Types DuckDB Avro Extension ...
https://man.mtool.work/php/8.3/ds-map.union.html
配列演算子 | PHP 8.3 11903
配列演算子 Array Operators 例 名前 結果 $a + $b 結合 $a および $b を結合する。 $a == $b 同等 $a および $b のキー/値のペアが等しい場合に true 。 $a === $b 同一 $a および $b のキー/値のペアが等しく、その並び順が等しく、 かつデータ型も等しい場 ... "a" => "apple" , "b" => "banana" ); $b = array( "a" => "pear" , "b" => "strawberry" , "c" => "cherry" ); $c = $a + $b ; // Union of $a and $b echo "Union of \$a and \$b: \n" ; var_dump ( $c ); $c = $b + $a ; // Union of $b and $a echo "Union of \$b an ... d \$a: \n" ; var_dump ( $c ); $a += $b ; // Union of $a += $b is $a and $b echo "Union of \$a += \$b: \n" ; var_dump ( $a ); ?> 上の例の出力は以下となります。 Union of $a a ... nd $b: array(3) { ["a"]=> string(5) "apple" ["b"]=> string(6) "banana" ["c"]=> string(6) "cherry" } Union of $b and $a: array(3) { ["a"]=> string(4) "pear" ["b"]=> string(10) "strawberry" ["c"]=> string(6) "cherry" } Union of $a ...
https://man.mtool.work/php/8.3/language.operators.array.html
型システム | PHP 8.3 9936
型システム PHP は部分型の関係を満たしつつ(behavioral subtyping)、 名前ベースで一致を調べる型システム(nominal type system) を採用しています。 部分型の関係はコンパイル時にチェックされますが、 型の検証は実行時に動的に行われます。 PHP の型システ ... せて、複合型を作ることができます。 PHP では、次のやり方で型を組み合わせることができます: (インターフェイスやクラスの)交差型 union 型 交差型 交差型 は、宣言した複数のクラス型を(単一ではなく) すべて満たす値を受け入れることができます。 交差型を構成する個別 ... の型は、 & 記号で結合します。 よって、型 T , U , V の交差型は T&U&V と書きます。 union 型 union 型は、ひとつではなく、 複数の異なる型を値として受け入れることができます。 union 型を構成する個別の型は、 | 記号で ... 結合します。 よって、型 T , U , V の union 型は T|U|V と書きます。 型のひとつが交差型の場合、 DNF で記すために 括弧で囲む必要があります。 つまり、 T|(X&Y) と書く必要 ...
https://man.mtool.work/php/8.3/language.types.type-system.html
ReflectionUnionType::getTypes — union 型に含まれる型を返す。 | PHP 8.3 8844
ReflectionUnionType::getTypes (PHP 8) ReflectionUnionType::getTypes — union 型に含まれる型を返す。 説明 public function ReflectionUnionType::getTypes (): array union 型に含まれるリフレクションの型を返します。 パラメータ この関数にはパラメー ... タはありません。 戻り値 ReflectionType オブジェクトの配列を返します。 例 例1 ReflectionUnionType::getTypes() の例 <?php function someFunction ( int | float $number ) {} $reflectionFunc = new ReflectionFunction ( 'so ... () - null が許されるかをチェックする ReflectionParameter::getType() - 引数の型を取得する 他のマニュアルの関連ページ DuckDB Union Functions Linux JM nfsservctl(2) ...
https://man.mtool.work/php/8.3/reflectionuniontype.gettypes.html
型宣言 | PHP 8.3 8687
型宣言 関数のパラメータや戻り値、 クラスのプロパティ (PHP 7.4.0 以降)、クラス定数 (PHP 8.3.0 以降) に対して型を宣言することができます。 これによって、その値がコール時に特定の型であることを保証できます。 その型でない場合は、 TypeError がスロ ... .0 mixed 型のサポートが追加されました。 8.0.0 戻り値にのみ指定できる型として、 static 型のサポートが追加されました。 8.0.0 union 型のサポートが追加されました。 7.4.0 クラスのプロパティに、型宣言のサポートが追加されました。 7.2.0 object 型のサポートが追 ... 型の冗長チェックがコンパイル時に行われます。 警告 PHP 8.2.0 より前のバージョン、 つまり DNF 型がサポートされる前は、 交差型とunion型を組み合わせることはできませんでした。 union 型 警告 union 型の中で、シングルトン型 true と false を同時に組み合わせて使う ... はできません。 bool 型を使ってください。 警告 PHP 8.2.0 より前のバージョンでは、 false と null 型は 独立した型として使えず、 union 型でそれらだけを指定することも許されませんでした。 つまり、 false , false|null , ?false のような型はいずれも許されませんで ...
https://man.mtool.work/php/8.3/language.types.declarations.html
Mixed | PHP 8.3 8299
Mixed mixed は、あらゆる値を受け入れる型です。 これは、以下の union 型 と同等です。 object|resource|array|string|float|int|bool|null . この型は、PHP 8.0.0 以降で利用可能です。 mixed 型は、型理論の用語で言うと、トップ型にあたります。 つまり、 ... 他の全ての型は、この型の部分型になります 他のマニュアルの関連ページ Python typing DuckDB Union Functions ...
https://man.mtool.work/php/8.3/language.types.mixed.html
Ds\Set::toArray — Converts the set to an array | PHP 8.3 7983
Ds\Set::toArray (PECL ds >= 1.0.0) Ds\Set::toArray — Converts the set to an array 説明 public function Ds\Set::toArray (): array Converts the set to an array . 注意 : Casting to an array is not supported yet. パラメータ この関数にはパラメー ... 力は、 たとえば以下のようになります。 array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } 他のマニュアルの関連ページ DuckDB Union Functions DuckDB Union Type DuckDB Casting Linux JM nfsservctl(2) ...
https://man.mtool.work/php/8.3/ds-set.toarray.html
シングルトン型 | PHP 8.3 7983
シングルトン型 シングルトン型は、ただひとつの値のみを受け入れる型です。 PHP はふたつのシングルトン型をサポートしています。 PHP 8.0.0 以降でサポートされた false 型と、 PHP 8.2.0 以降でサポートされた true 型です。 警告 PHP 8.2.0 より前のバージ ... ョンでは、 false 型は union 型 の一部としてのみ使える型でした。 注意 : カスタムのシングルトン型を定義することはできません。 そうしたい場合、 列挙型(En ... um) を使うことを検討してください。 他のマニュアルの関連ページ Python structures Django index DuckDB Union Functions Python enum FastAPI パスパラメータ Python enum ...
https://man.mtool.work/php/8.3/language.types.singleton.html
型の相互変換 | PHP 8.3 7509
型の相互変換 PHP は変数宣言時に明示的な型定義を必要としません。 型を定義しない場合、変数の型は保存する値によって決まります。 これは、変数 $var に文字列を代入した場合、 $var の型は文字列 ( string ) になることを意味しています。 その後、整数値 ... 。たとえば、文字列が 数値形式 である場合です。 文字列 ( string ) 型として宣言されている場合: 値は文字列として解釈されます。 union 型と型の自動変換 strict_types が有効になっていない場合、 スカラー型の宣言は、限られた暗黙の型変換が行われます。 値の正確な ... 型が union の一部に指定されていない場合、 次の順に対象となる型が選択されます: int float string bool 正確な型が union の中に存在し、 か ... できる場合、 その型が選択されます。 そうでない場合、次の型を試そうとします。 警告 例外として、値が文字列で、int と float が union に含まれていた場合、 型は既存の 数値形式の文字列 を解釈するセマンティクスによって決まります。 たとえば、 "42" の場合、 int ...
https://man.mtool.work/php/8.3/language.types.type-juggling.html
PREV 1 2 3 4 5 6 7 NEXT