« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 80 for union (0.001 sec.)
Creates a new set using values from the current instance and another set 11519
« Ds\Set::toArray Ds\Set::xor » PHP Manual Ds\Set Creates a new set using values from the current instance and another set 検索 Ds\Set::union (PECL ds >= 1.0.0) Ds\Set::union — Creates a new set using values from the current instance and an ... other set 説明 public function Ds\Set::union ( Ds\Set $set ): Ds\Set Creates a new set that contains the values of the current instance as well as the values of anothe ... 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) ...
https://man.mtool.work/php/8.3/ds-set.union.html
Creates a new map using values from the current instance and another map 10972
« Ds\Map::toArray Ds\Map::values » PHP Manual Ds\Map Creates a new map using values from the current instance and another map 検索 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 instance as well as the pairs of another ... 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] => ...
https://man.mtool.work/php/8.3/ds-map.union.html
配列演算子 10780
« 文字列演算子 型演算子 » PHP Manual 演算子 配列演算子 検索 配列演算子 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
配列演算子 10780
« 文字列演算子 型演算子 » PHP Manual 演算子 配列演算子 検索 配列演算子 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
Creates a new set using values from the current instance and another set 10725
« Ds\Set::toArray Ds\Set::xor » PHP Manual Ds\Set Creates a new set using values from the current instance and another set 検索 Ds\Set::union (PECL ds >= 1.0.0) Ds\Set::union — Creates a new set using values from the current instance and an ... other set 説明 public function Ds\Set::union ( Ds\Set $set ): Ds\Set Creates a new set that contains the values of the current instance as well as the values of anothe ... 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) ...
https://man.mtool.work/php/8.3/ds-set.union.html
Creates a new map using values from the current instance and another map 10355
« Ds\Map::toArray Ds\Map::values » PHP Manual Ds\Map Creates a new map using values from the current instance and another map 検索 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 instance as well as the pairs of another ... 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] => ...
https://man.mtool.work/php/8.3/ds-map.union.html
型システム 8684
« はじめに NULL » PHP Manual 型 型システム 検索 型システム PHP は部分型の関係を満たしつつ(behavioral subtyping)、 名前ベースで一致を調べる型システム(nominal type system) を採用しています。 部分型の関係はコンパイル時にチェックされますが、 型 ... せて、複合型を作ることができます。 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
型システム 8684
« はじめに NULL » PHP Manual 型 型システム 検索 型システム PHP は部分型の関係を満たしつつ(behavioral subtyping)、 名前ベースで一致を調べる型システム(nominal type system) を採用しています。 部分型の関係はコンパイル時にチェックされますが、 型 ... せて、複合型を作ることができます。 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
union 型に含まれる型を返す。 8561
« ReflectionUnionType ReflectionGenerator » PHP Manual ReflectionUnionType union 型に含まれる型を返す。 検索 ReflectionUnionType::getTypes (PHP 8) ReflectionUnionType::getTypes — union 型に含まれる型を返す。 説明 public function ReflectionUnion ... nionType::getTypes (): array union 型に含まれるリフレクションの型を返します。 パラメータ この関数にはパラメータはありません。 戻り値 ReflectionType オブジェク ... トの配列を返します。 例 例1 ReflectionUnionType::getTypes() の例 <?php function someFunction ( int | float $number ) {} $reflectionFunc = new ReflectionFunction ( 'so ... lowsNull() - null が許されるかをチェックする ReflectionParameter::getType() - 引数の型を取得する 関連キーワード: ReflectionUnionType getTypes union function array パラメータ ReflectionType someFunction reflectionFunc reflectionParam getType class Refl ...
https://man.mtool.work/php/8.3/reflectionuniontype.gettypes.html
union 型に含まれる型を返す。 8561
« ReflectionUnionType ReflectionGenerator » PHP Manual ReflectionUnionType union 型に含まれる型を返す。 検索 ReflectionUnionType::getTypes (PHP 8) ReflectionUnionType::getTypes — union 型に含まれる型を返す。 説明 public function ReflectionUnion ... nionType::getTypes (): array union 型に含まれるリフレクションの型を返します。 パラメータ この関数にはパラメータはありません。 戻り値 ReflectionType オブジェク ... トの配列を返します。 例 例1 ReflectionUnionType::getTypes() の例 <?php function someFunction ( int | float $number ) {} $reflectionFunc = new ReflectionFunction ( 'so ... lowsNull() - null が許されるかをチェックする ReflectionParameter::getType() - 引数の型を取得する 関連キーワード: ReflectionUnionType getTypes union ReflectionType someFunction reflectionFunc reflectionParam getType ReflectionNamedType ReflectionGenera ...
https://man.mtool.work/php/8.3/reflectionuniontype.gettypes.html
PREV 1 2 3 4 5 6 7 8 NEXT