« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 41 for getValue (0.002 sec.)
ReflectionConstant::getValue — 値を取得する | PHP 8.3 11827
ReflectionConstant::getValue (PHP 8 >= 8.4.0) ReflectionConstant::getValue — 値を取得する 説明 public function ReflectionConstant::getValue (): mixed 定数の値を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 定数の値を返 ... します。 例 例1 ReflectionProperty::getValue() の例 <?php const FOO = 'foo' ; var_dump ((new \ReflectionConstant ( 'FOO' ))-> getValue ()); ?> 上の例の出力は以下となり ...
https://man.mtool.work/php/8.3/reflectionconstant.getvalue.html
ReflectionProperty::getValue — 値を取得する | PHP 8.3 11672
ReflectionProperty::getValue (PHP 5, PHP 7, PHP 8) ReflectionProperty::getValue — 値を取得する 説明 public function ReflectionProperty::getValue ( ? object $object = null ): mixed プロパティの値を取得します。 パラメータ object static でない ... り値 プロパティの現在の値を返します。 変更履歴 バージョン 説明 8.1.0 private と protected なプロパティは ReflectionProperty::getValue() ですぐにアクセスできるようになりました。 これより前のバージョンでは、 ReflectionProperty::setAccessible() をコールするこ ... ない場合、 ReflectionException がスローされていました。 8.0.0 object は、nullable になりました。 例 例1 ReflectionProperty::getValue() の例 <?php class Foo { public static $staticProperty = 'foobar' ; public $property = 'barfoo' ; protected $privateProper ... o' ; } $reflectionClass = new ReflectionClass ( 'Foo' ); var_dump ( $reflectionClass -> getProperty ( 'staticProperty' )-> getValue ()); var_dump ( $reflectionClass -> getProperty ( 'property' )-> getValue (new Foo )); $reflectionProperty = $reflectionCl ...
https://man.mtool.work/php/8.3/reflectionproperty.getvalue.html
SensitiveParameterValue::getValue — 秘密の値を返す | PHP 8.3 11361
SensitiveParameterValue::getValue (PHP 8 >= 8.2.0) SensitiveParameterValue::getValue — 秘密の値を返す 説明 public function SensitiveParameterValue::getValue (): mixed 秘密の値を取得します。 パラメータ この関数にはパラメータはありません。 戻 ... り値 秘密の値を返します。 例 例1 SensitiveParameterValue::getValue() の例 <?php $s = new \SensitiveParameterValue ( 'secret' ); echo "The protected value is: " , $s -> getValue (), "\n" ; ? ...
https://man.mtool.work/php/8.3/sensitiveparametervalue.getvalue.html
ReflectionEnumUnitCase::getValue — このリフレクションオブジェクトが表す case オ... 10677
ReflectionEnumUnitCase::getValue (PHP 8 >= 8.1.0) ReflectionEnumUnitCase::getValue — このリフレクションオブジェクトが表す case オブジェクトを取得する 説明 public function ReflectionEnumUnitCase::getValue (): UnitEnum このリフレクションオブジ ... ータはありません。 戻り値 このリフレクションオブジェクトが表す 列挙型の case オブジェクトを返します。 例 例1 ReflectionEnum::getValue() の例 <?php enum Suit { case Hearts ; case Diamonds ; case Clubs ; case Spades ; } $rEnum = new ReflectionEnum ( Suit ::c ... lass); $rCase = $rEnum -> getCase ( 'Diamonds' ); var_dump ( $rCase -> getValue ()); ?> 上の例の出力は以下となります。 enum(Suit::Diamonds) 参考 列挙型(Enum) 他のマニュアルの関連ページ Python enum FastA ...
https://man.mtool.work/php/8.3/reflectionenumunitcase.getvalue.html
UI\Controls\Progress::getValue — Get Value | PHP 8.3 9931
UI\Controls\Progress::getValue (UI 0.9.9) UI\Controls\Progress::getValue — Get Value 説明 public function UI\Controls\Progress::getValue (): int Shall retrieve the current value of this Progress bar パラメータ この関数にはパラメータはありま ...
https://man.mtool.work/php/8.3/ui-controls-progress.getvalue.html
UI\Controls\Slider::getValue — Get Value | PHP 8.3 9931
UI\Controls\Slider::getValue (UI 0.9.9) UI\Controls\Slider::getValue — Get Value 説明 public function UI\Controls\Slider::getValue (): int Get the value from this Slider パラメータ この関数にはパラメータはありません。 ...
https://man.mtool.work/php/8.3/ui-controls-slider.getvalue.html
UI\Controls\Spin::getValue — Get Value | PHP 8.3 9931
UI\Controls\Spin::getValue (UI 0.9.9) UI\Controls\Spin::getValue — Get Value 説明 public function UI\Controls\Spin::getValue (): int Get the value in this Spin パラメータ この関数にはパラメータはありません。 ...
https://man.mtool.work/php/8.3/ui-controls-spin.getvalue.html
ReflectionClassConstant::getValue — 値を取得する | PHP 8.3 9776
ReflectionClassConstant::getValue (PHP 7 >= 7.1.0, PHP 8) ReflectionClassConstant::getValue — 値を取得する 説明 public function ReflectionClassConstant::getValue (): mixed クラス定数の値を取得します。 パラメータ この関数にはパラメータはあり ...
https://man.mtool.work/php/8.3/reflectionclassconstant.getvalue.html
ReflectionProperty::__construct — ReflectionProperty オブジェクトを作成する | P... 8408
ReflectionProperty::__construct (PHP 5, PHP 7, PHP 8) ReflectionProperty::__construct — ReflectionProperty オブジェクトを作成する 説明 public function ReflectionProperty::__construct ( object | string $class , string $property ) パラメータ ... tr のインスタンスを作成します $obj = new Str (); // 現在の値を取得します printf ( "---> Value is: " ); var_dump ( $prop -> getValue ( $obj )); // 値を変更します $prop -> setValue ( $obj , 10 ); printf ( "---> Setting value to 10, new value is: " ); var_d ... ump ( $prop -> getValue ( $obj )); // オブジェクトを出力します var_dump ( $obj ); ?> 上の例の出力は、 たとえば以下のようになります。 ===> The publ ... ; } $obj = new Foo ; $prop = new ReflectionProperty ( 'Foo' , 'y' ); $prop -> setAccessible ( true ); var_dump ( $prop -> getValue ( $obj )); // int(2) $prop = new ReflectionProperty ( 'Foo' , 'z' ); $prop -> setAccessible ( true ); var_dump ( $prop -> ...
https://man.mtool.work/php/8.3/reflectionproperty.construct.html
ReflectionEnumUnitCase クラス | PHP 8.3 8253
ReflectionEnumUnitCase クラス (PHP 8 >= 8.1.0) はじめに ReflectionEnumUnitCase クラスは、 列挙型 の case に関する情報を報告します。 これは、スカラー型の情報を持っていません。 クラス概要 class ReflectionEnumUnitCase extends ReflectionClassCo ... ction __construct ( object | string $class , string $constant ) public function getEnum (): ReflectionEnum public function getValue (): UnitEnum /* 継承したメソッド */ public static function ReflectionClassConstant::export ( mixed $class , string $name , ... (): string public function ReflectionClassConstant::getType (): ? ReflectionType public function ReflectionClassConstant::getValue (): mixed public function ReflectionClassConstant::hasType (): bool public function ReflectionClassConstant::isDeprecated ... ンス化する ReflectionEnumUnitCase::getEnum — この case が属するリフレクションオブジェクトを取得する ReflectionEnumUnitCase::getValue — このリフレクションオブジェクトが表す case オブジェクトを取得する ...
https://man.mtool.work/php/8.3/class.reflectionenumunitcase.html
PREV 1 2 3 4 5 NEXT