Results of 1 - 10 of about 167 for self (0.004 sec.)
- 例 9773
- « 列挙型が継承できない理由 Error Handling » PHP Manual 列挙型(Enum) 例 検索 例 例1 基本的な、値を限定する例 <?php enum SortOrder { case Asc ; case Desc ; } function query ( $fields , $filter , SortOrder $order = SortOrder :: Asc ) { /* ...
... ive = 'A' ; case Suspended = 'S' ; case CanceledByUser = 'C' ; public function label (): string { return match ( $this ) { self :: Pending => 'Pending' , self :: Active => 'Active' , self :: Suspended => 'Suspended' , self :: CanceledByUser => 'Cance ... tive = 'A' ; case Suspended = 'S' ; case CanceledByUser = 'C' ; public function label (): string { return match( $this ) { self :: Pending => 'Pending' , self :: Active => 'Active' , self :: Suspended => 'Suspended' , self :: CanceledByUser => 'Cance ... on>\n" , htmlentities ( $case -> value ), htmlentities ( $case -> label ()) ); } 関連キーワード: case UserStatus Suspended self Pending SortOrder CanceledByUser label string php enum Asc function 列挙型 Desc query order return match Canceled user ...
-
https://man.mtool.work/php/8.3/language.enumerations.examples.html
- 例 9773
- « 列挙型が継承できない理由 Error Handling » PHP Manual 列挙型(Enum) 例 検索 例 例1 基本的な、値を限定する例 <?php enum SortOrder { case Asc ; case Desc ; } function query ( $fields , $filter , SortOrder $order = SortOrder :: Asc ) { /* ...
... ive = 'A' ; case Suspended = 'S' ; case CanceledByUser = 'C' ; public function label (): string { return match ( $this ) { self :: Pending => 'Pending' , self :: Active => 'Active' , self :: Suspended => 'Suspended' , self :: CanceledByUser => 'Cance ... tive = 'A' ; case Suspended = 'S' ; case CanceledByUser = 'C' ; public function label (): string { return match( $this ) { self :: Pending => 'Pending' , self :: Active => 'Active' , self :: Suspended => 'Suspended' , self :: CanceledByUser => 'Cance ... on>\n" , htmlentities ( $case -> value ), htmlentities ( $case -> label ()) ); } 関連キーワード: case UserStatus Suspended self Pending SortOrder CanceledByUser label enum 列挙型 Desc query order return match Canceled user status スカラー option html ...
-
https://man.mtool.work/php/8.3/language.enumerations.examples.html
- 指定したモジュールのセルフテストを実行する 9252
- « mcrypt_module_open mdecrypt_generic » PHP Manual Mcrypt 関数 指定したモジュールのセルフテストを実行する 検索 mcrypt_module_self_test (PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_module_self_test — 指定したモジュール
... 7.1.0 で 非推奨 となり、PHP 7.2.0 で 削除 されました。この関数に頼らないことを強く推奨します。 説明 function mcrypt_module_self_test ( string $algorithm , string $lib_dir = ? ): bool この関数は、指定したアルゴリズムのセルフテストを実行します。 パラメ ... モジュールの位置を指定することが可能です。 戻り値 成功した場合 0 、失敗した場合に負の int を返します。 例 例1 mcrypt_module_self_test() の例 <?php var_dump ( mcrypt_module_self_test ( MCRYPT_RIJNDAEL_128 )) . "\n" ; var_dump ( mcrypt_module_self_test ... ( MCRYPT_BOGUS_CYPHER )); ?> 上の例の出力は以下となります。 bool(true) bool(false) 関連キーワード: mcrypt module self test モジュール セルフ algorithm lib dir bool open string アルゴリズム パラメータ 場合 var dump Search mdecrypt generic ...
-
https://man.mtool.work/php/8.3/function.mcrypt-module-self-test.html
- 指定したモジュールのセルフテストを実行する 9252
- « mcrypt_module_open mdecrypt_generic » PHP Manual Mcrypt 関数 指定したモジュールのセルフテストを実行する 検索 mcrypt_module_self_test (PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_module_self_test — 指定したモジュール
... 7.1.0 で 非推奨 となり、PHP 7.2.0 で 削除 されました。この関数に頼らないことを強く推奨します。 説明 function mcrypt_module_self_test ( string $algorithm , string $lib_dir = ? ): bool この関数は、指定したアルゴリズムのセルフテストを実行します。 パラメ ... モジュールの位置を指定することが可能です。 戻り値 成功した場合 0 、失敗した場合に負の int を返します。 例 例1 mcrypt_module_self_test() の例 <?php var_dump ( mcrypt_module_self_test ( MCRYPT_RIJNDAEL_128 )) . "\n" ; var_dump ( mcrypt_module_self_test ... ( MCRYPT_BOGUS_CYPHER )); ?> 上の例の出力は以下となります。 bool(true) bool(false) 関連キーワード: mcrypt module self セルフ algorithm アルゴリズム dump mdecrypt generic Mcrypt 非推奨 推奨 暗号 定数 成功 ...
-
https://man.mtool.work/php/8.3/function.mcrypt-module-self-test.html
- 列挙型と static メソッド 8458
- « 列挙型とメソッド 列挙型と定数 » PHP Manual 列挙型(Enum) 列挙型と static メソッド 検索 列挙型と static メソッド 列挙型は、static メソッドを持つこともできます。 列挙型で static メソッドを使う主な理由は、 コンストラクタの代わりをさせるためで
... 下のようなものです: <?php enum Size { case Small ; case Medium ; case Large ; public static function fromLength ( int $cm ): self { return match ( true ) { $cm < 50 => self :: Small , $cm < 100 => self :: Medium , default => self :: Large , }; } } var_ ... は実際 private と protected は同じものです。 なぜなら、継承が許されていないからです。 関連キーワード: 列挙型 static メソッド self case cm Size Small Medium Large fromLength private protected Search 定数 Enum 理由 コンストラクタ 代わり php ...
-
https://man.mtool.work/php/8.3/language.enumerations.static-methods.html
- 列挙型と static メソッド 8458
- « 列挙型とメソッド 列挙型と定数 » PHP Manual 列挙型(Enum) 列挙型と static メソッド 検索 列挙型と static メソッド 列挙型は、static メソッドを持つこともできます。 列挙型で static メソッドを使う主な理由は、 コンストラクタの代わりをさせるためで
... 下のようなものです: <?php enum Size { case Small ; case Medium ; case Large ; public static function fromLength ( int $cm ): self { return match ( true ) { $cm < 50 => self :: Small , $cm < 100 => self :: Medium , default => self :: Large , }; } } var_ ... 列挙型では実際 private と protected は同じものです。 なぜなら、継承が許されていないからです。 関連キーワード: 列挙型 static self case Size Small Medium Large fromLength private protected 定数 Enum 理由 コンストラクタ enum return match default dump 実際 ...
-
https://man.mtool.work/php/8.3/language.enumerations.static-methods.html
- クラス定数 8265
- « プロパティフック クラスのオートローディング » PHP Manual クラスとオブジェクト クラス定数 検索 クラス定数 定数 をクラス内に定義することができます。 クラス定数のデフォルトのアクセス範囲は public です。 注意 : クラス定数は、子クラスで再定義す
... ます。 インターフェイスについてのドキュメント で例を御覧ください。 変数を用いてクラスを参照することも可能です。 変数の値に ( self や parent 、 static といった) キーワードを指定することはできません。 クラス定数はクラス単位で割り当てられるものです。インス ... に限ります。 例1 定数の定義と使用 <?php class MyClass { const CONSTANT = 'constant value' ; function showConstant () { echo self :: CONSTANT . "\n" ; } } echo MyClass :: CONSTANT . "\n" ; $classname = "MyClass" ; echo $classname :: CONSTANT . "\n" ; $ ... ss; // foo\bar } ?> 例3 クラス内での定数式の例 <?php const ONE = 1 ; class foo { const TWO = ONE * 2 ; const THREE = ONE + self :: TWO ; const SENTENCE = 'The value of THREE is ' . self :: THREE ; } ?> 例4 PHP 7.1.0 以降の、クラス定数のアクセス範囲 < ...
-
https://man.mtool.work/php/8.3/language.oop5.constants.html
- クラス定数 8265
- « プロパティフック クラスのオートローディング » PHP Manual クラスとオブジェクト クラス定数 検索 クラス定数 定数 をクラス内に定義することができます。 クラス定数のデフォルトのアクセス範囲は public です。 注意 : クラス定数は、子クラスで再定義す
... ます。 インターフェイスについてのドキュメント で例を御覧ください。 変数を用いてクラスを参照することも可能です。 変数の値に ( self や parent 、 static といった) キーワードを指定することはできません。 クラス定数はクラス単位で割り当てられるものです。インス ... に限ります。 例1 定数の定義と使用 <?php class MyClass { const CONSTANT = 'constant value' ; function showConstant () { echo self :: CONSTANT . "\n" ; } } echo MyClass :: CONSTANT . "\n" ; $classname = "MyClass" ; echo $classname :: CONSTANT . "\n" ; $ ... ss; // foo\bar } ?> 例3 クラス内での定数式の例 <?php const ONE = 1 ; class foo { const TWO = ONE * 2 ; const THREE = ONE + self :: TWO ; const SENTENCE = 'The value of THREE is ' . self :: THREE ; } ?> 例4 PHP 7.1.0 以降の、クラス定数のアクセス範囲 < ...
-
https://man.mtool.work/php/8.3/language.oop5.constants.html
- Lua 関数を呼び出す 7936
- « Lua::assign Lua::__construct » PHP Manual Lua Lua 関数を呼び出す 検索 Lua::call Lua::__call (PECL lua >=0.9.0) Lua::call -- Lua::__call — Lua 関数を呼び出す 説明 public function Lua::call ( callable $lua_func , array $args = ? , int $use_
... self = 0 ): mixed public function Lua::__call ( callable $lua_func , array $args = ? , int $use_self = 0 ): mixed 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。 パラメータ lua_fu ... nc lua での関数名 args Lua 関数に渡される引数 use_self self を使うか否か 戻り値 呼び出した関数の結果を返します。引数が間違っている場合は null 、 それ以外のエラーの場合は false を ... の例の出力は以下となります。 Lua,geiliable Lua,geiliable string(5) "1-2-3" 参考 __call() 関連キーワード: Lua call lua array self geiliable function func args use dummy callable int mixed 場合 foo bar assign Search construct ...
-
https://man.mtool.work/php/8.3/lua.call.html
- Lua 関数を呼び出す 7936
- « Lua::assign Lua::__construct » PHP Manual Lua Lua 関数を呼び出す 検索 Lua::call Lua::__call (PECL lua >=0.9.0) Lua::call -- Lua::__call — Lua 関数を呼び出す 説明 public function Lua::call ( callable $lua_func , array $args = ? , int $use_
... self = 0 ): mixed public function Lua::__call ( callable $lua_func , array $args = ? , int $use_self = 0 ): mixed 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。 パラメータ lua_fu ... nc lua での関数名 args Lua 関数に渡される引数 use_self self を使うか否か 戻り値 呼び出した関数の結果を返します。引数が間違っている場合は null 、 それ以外のエラーの場合は false を ... -" ))); ?> 上の例の出力は以下となります。 Lua,geiliable Lua,geiliable string(5) "1-2-3" 参考 __call() 関連キーワード: call self geiliable func args dummy callable mixed assign construct 詳細 記述 eval print dump table concat 参考 ...
-
https://man.mtool.work/php/8.3/lua.call.html