« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 10 for Basket (0.001 sec.)
アトリビュートを取得する 10744
« ReflectionClassConstant::export ReflectionClassConstant::getDeclaringClass » PHP Manual ReflectionClassConstant アトリビュートを取得する 検索 ReflectionClassConstant::getAttributes (PHP 8) ReflectionClassConstant::getAttributes — アトリビ ... ジェクトの配列として返します。 例 例1 基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ) ... ruit [1] => Red ) 例2 クラス名で結果をフィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ) ... をフィルタする <?php interface Color { } #[ Attribute ] class Fruit { } #[ Attribute ] class Red implements Color { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ) ...
https://man.mtool.work/php/8.3/reflectionclassconstant.getattributes.html
アトリビュートを取得する 10744
« ReflectionProperty::export ReflectionProperty::getDeclaringClass » PHP Manual ReflectionProperty アトリビュートを取得する 検索 ReflectionProperty::getAttributes (PHP 8) ReflectionProperty::getAttributes — アトリビュートを取得する 説明 pub ... ジェクトの配列として返します。 例 例1 基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attri ... ruit [1] => Red ) 例2 クラス名で結果をフィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attri ... をフィルタする <?php interface Color { } #[ Attribute ] class Fruit { } #[ Attribute ] class Red implements Color { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attri ...
https://man.mtool.work/php/8.3/reflectionproperty.getattributes.html
アトリビュートを取得する 10744
« ReflectionClassConstant::export ReflectionClassConstant::getDeclaringClass » PHP Manual ReflectionClassConstant アトリビュートを取得する 検索 ReflectionClassConstant::getAttributes (PHP 8) ReflectionClassConstant::getAttributes — アトリビ ... ジェクトの配列として返します。 例 例1 基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ) ... ruit [1] => Red ) 例2 クラス名で結果をフィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ) ... をフィルタする <?php interface Color { } #[ Attribute ] class Fruit { } #[ Attribute ] class Red implements Color { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ) ...
https://man.mtool.work/php/8.3/reflectionclassconstant.getattributes.html
アトリビュートを取得する 10744
« ReflectionProperty::export ReflectionProperty::getDeclaringClass » PHP Manual ReflectionProperty アトリビュートを取得する 検索 ReflectionProperty::getAttributes (PHP 8) ReflectionProperty::getAttributes — アトリビュートを取得する 説明 pub ... ジェクトの配列として返します。 例 例1 基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attri ... ruit [1] => Red ) 例2 クラス名で結果をフィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attri ... をフィルタする <?php interface Color { } #[ Attribute ] class Fruit { } #[ Attribute ] class Red implements Color { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attri ...
https://man.mtool.work/php/8.3/reflectionproperty.getattributes.html
渡された配列の要素を再帰的に置き換える 9189
« array_replace array_reverse » PHP Manual 配列 関数 渡された配列の要素を再帰的に置き換える 検索 array_replace_recursive (PHP 5 >= 5.3.0, PHP 7, PHP 8) array_replace_recursive — 渡された配列の要素を再帰的に置き換える 説明 function array_rep ... lackberry" , "raspberry" )); $replacements = array( 'citrus' => array( 'pineapple' ), 'berries' => array( 'blueberry' )); $basket = array_replace_recursive ( $base , $replacements ); print_r ( $basket ); $basket = array_replace ( $base , $replacements ... ); print_r ( $basket ); ?> 上の例の出力は以下となります。 Array ( [citrus] => Array ( [0] => pineapple ) [berries] => Array ( [0] => blueberry ... )); $replacements2 = array( 'citrus' => array( 'pineapple' ), 'berries' => array( 'blueberry' ), 'others' => 'litchis' ); $basket = array_replace_recursive ( $base , $replacements , $replacements2 ); print_r ( $basket ); ?> 上の例の出力は以下となります ...
https://man.mtool.work/php/8.3/function.array-replace-recursive.html
渡された配列の要素を再帰的に置き換える 9189
« array_replace array_reverse » PHP Manual 配列 関数 渡された配列の要素を再帰的に置き換える 検索 array_replace_recursive (PHP 5 >= 5.3.0, PHP 7, PHP 8) array_replace_recursive — 渡された配列の要素を再帰的に置き換える 説明 function array_rep ... lackberry" , "raspberry" )); $replacements = array( 'citrus' => array( 'pineapple' ), 'berries' => array( 'blueberry' )); $basket = array_replace_recursive ( $base , $replacements ); print_r ( $basket ); $basket = array_replace ( $base , $replacements ... ); print_r ( $basket ); ?> 上の例の出力は以下となります。 Array ( [citrus] => Array ( [0] => pineapple ) [berries] => Array ( [0] => blueberry ... )); $replacements2 = array( 'citrus' => array( 'pineapple' ), 'berries' => array( 'blueberry' ), 'others' => 'litchis' ); $basket = array_replace_recursive ( $base , $replacements , $replacements2 ); print_r ( $basket ); ?> 上の例の出力は以下となります ...
https://man.mtool.work/php/8.3/function.array-replace-recursive.html
クラス定数が非推奨かどうかを調べる 7919
« ReflectionClassConstant::hasType ReflectionClassConstant::isEnumCase » PHP Manual ReflectionClassConstant クラス定数が非推奨かどうかを調べる 検索 ReflectionClassConstant::isDeprecated (PHP 8 >= 8.4.0) ReflectionClassConstant::isDeprecated ... 定数が非推奨なら true を、そうでなければ false を返します。 例 例1 ReflectionClassConstant::isDeprecated() の例 <?php class Basket { #[ \Deprecated ( message : 'use Basket::APPLE instead' )] public const APLE = 'apple' ; public const APPLE = 'apple' ; } ... $classConstant = new ReflectionClassConstant ( 'Basket' , 'APLE' ); var_dump ( $classConstant -> isDeprecated ()); ?> 上の例の出力は以下となります。 bool(true) 参考 Deprecated R ... ent() - クラス定数のドキュメントコメントを取得する 関連キーワード: ReflectionClassConstant クラス 定数 非推奨 isDeprecated Basket bool パラメータ true Deprecated const apple classConstant hasType Search isEnumCase function 戻り値 false php ...
https://man.mtool.work/php/8.3/reflectionclassconstant.isdeprecated.html
クラス定数が非推奨かどうかを調べる 7919
« ReflectionClassConstant::hasType ReflectionClassConstant::isEnumCase » PHP Manual ReflectionClassConstant クラス定数が非推奨かどうかを調べる 検索 ReflectionClassConstant::isDeprecated (PHP 8 >= 8.4.0) ReflectionClassConstant::isDeprecated ... 定数が非推奨なら true を、そうでなければ false を返します。 例 例1 ReflectionClassConstant::isDeprecated() の例 <?php class Basket { #[ \Deprecated ( message : 'use Basket::APPLE instead' )] public const APLE = 'apple' ; public const APPLE = 'apple' ; } ... $classConstant = new ReflectionClassConstant ( 'Basket' , 'APLE' ); var_dump ( $classConstant -> isDeprecated ()); ?> 上の例の出力は以下となります。 bool(true) 参考 Deprecated R ... DocComment() - クラス定数のドキュメントコメントを取得する 関連キーワード: ReflectionClassConstant 定数 非推奨 isDeprecated Basket Deprecated apple classConstant hasType isEnumCase message instead dump 参考 getDocComment ドキュメント コメント ...
https://man.mtool.work/php/8.3/reflectionclassconstant.isdeprecated.html
渡された配列の要素を置き換える 6042
« array_reduce array_replace_recursive » PHP Manual 配列 関数 渡された配列の要素を置き換える 検索 array_replace (PHP 5 >= 5.3.0, PHP 7, PHP 8) array_replace — 渡された配列の要素を置き換える 説明 function array_replace ( array $array , array ... pple" , "raspberry" ); $replacements = array( 0 => "pineapple" , 4 => "cherry" ); $replacements2 = array( 0 => "grape" ); $basket = array_replace ( $base , $replacements , $replacements2 ); var_dump ( $basket ); ?> 上の例の出力は以下となります。 array( ... ts = [ 'citrus' => [ 'grapefruit' ] ]; $replacements2 = [ 'citrus' => [ 'kumquat' , 'citron' ], 'pome' => [ 'loquat' ] ]; $basket = array_replace ( $base , $replacements , $replacements2 ); var_dump ( $basket ); ?> 上の例の出力は以下となります。 array( ... き換える array_merge() - ひとつまたは複数の配列をマージする 関連キーワード: array 配列 replace replacements 要素 string base basket citrus キー apple pome recursive それぞれ 複数 再帰 php orange banana raspberry ...
https://man.mtool.work/php/8.3/function.array-replace.html
渡された配列の要素を置き換える 6042
« array_reduce array_replace_recursive » PHP Manual 配列 関数 渡された配列の要素を置き換える 検索 array_replace (PHP 5 >= 5.3.0, PHP 7, PHP 8) array_replace — 渡された配列の要素を置き換える 説明 function array_replace ( array $array , array ... pple" , "raspberry" ); $replacements = array( 0 => "pineapple" , 4 => "cherry" ); $replacements2 = array( 0 => "grape" ); $basket = array_replace ( $base , $replacements , $replacements2 ); var_dump ( $basket ); ?> 上の例の出力は以下となります。 array( ... ts = [ 'citrus' => [ 'grapefruit' ] ]; $replacements2 = [ 'citrus' => [ 'kumquat' , 'citron' ], 'pome' => [ 'loquat' ] ]; $basket = array_replace ( $base , $replacements , $replacements2 ); var_dump ( $basket ); ?> 上の例の出力は以下となります。 array( ... 配列の要素を再帰的に置き換える array_merge() - ひとつまたは複数の配列をマージする 関連キーワード: replace replacements base basket citrus キー apple pome recursive 複数 再帰 orange banana raspberry cherry grape dump kumquat citron loquat reduce 一番 最後 ...
https://man.mtool.work/php/8.3/function.array-replace.html
PREV 1 NEXT