« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 56 for anonymous (0.002 sec.)
変数の型名をデバッグしやすい形で取得する 11463
« floatval get_defined_vars » PHP Manual 変数操作 関数 変数の型名をデバッグしやすい形で取得する 検索 get_debug_type (PHP 8) get_debug_type — 変数の型名をデバッグしやすい形で取得する 説明 function get_debug_type ( mixed $value ): string PHP ... トリーム 名前付きのクラスのオブジェクト 名前空間も含めた、クラスの完全修飾名。 例: Foo\Bar - 無名クラスのオブジェクト "class@anonymous" 。 クラスが別のクラスを継承したり、 インターフェイスを実装した場合は、親クラス/親のインターフェイス の名前。 例: "Foo\Bar ... @anonymous" 無名クラスのオブジェクトは、 $x = new class { ... } という文法で作成されます。 例 例1 get_debug_type() の例 <?php namespa ... 出力は、 たとえば以下のようになります。 null bool int float string array resource (stream) resource (closed) stdClass class@anonymous Foo\A@anonymous Foo\A@anonymous Foo\C@anonymous Foo\C@anonymous 参考 gettype() - 変数の型を取得する get_class() - オブジェ ...
https://man.mtool.work/php/8.3/function.get-debug-type.html
変数の型名をデバッグしやすい形で取得する 11463
« floatval get_defined_vars » PHP Manual 変数操作 関数 変数の型名をデバッグしやすい形で取得する 検索 get_debug_type (PHP 8) get_debug_type — 変数の型名をデバッグしやすい形で取得する 説明 function get_debug_type ( mixed $value ): string PHP ... トリーム 名前付きのクラスのオブジェクト 名前空間も含めた、クラスの完全修飾名。 例: Foo\Bar - 無名クラスのオブジェクト "class@anonymous" 。 クラスが別のクラスを継承したり、 インターフェイスを実装した場合は、親クラス/親のインターフェイス の名前。 例: "Foo\Bar ... @anonymous" 無名クラスのオブジェクトは、 $x = new class { ... } という文法で作成されます。 例 例1 get_debug_type() の例 <?php namespa ... 出力は、 たとえば以下のようになります。 null bool int float string array resource (stream) resource (closed) stdClass class@anonymous Foo\A@anonymous Foo\A@anonymous Foo\C@anonymous Foo\C@anonymous 参考 gettype() - 変数の型を取得する get_class() - オブジェ ...
https://man.mtool.work/php/8.3/function.get-debug-type.html
無名クラス 11374
« トレイト オーバーロード » PHP Manual クラスとオブジェクト 無名クラス 検索 無名クラス 無名クラスは、その場限りの使い捨てのオブジェクトが必要になった場合に便利です。 <?php // 明示的にクラスを宣言して使う class Logger { public function log ( ... ic function __construct ( $num ) { $this -> num = $num ; } use SomeTrait ; }); 上の例の出力は以下となります。 object(class@anonymous)#1 (1) { ["Command line code0x104c5b612":"class@anonymous":private]=> int(10) } 無名クラスを別のクラス内で作っても、外側の ... 下となります。 6 同じ無名クラス宣言から作ったすべてのオブジェクトは、その同じクラスのインスタンスとなります。 <?php function anonymous_class () { return new class {}; } if ( get_class ( anonymous_class ()) === get_class ( anonymous_class ())) { echo '同じク ... するコードを書いてはいけません。 <?php echo get_class (new class {}); 上の例の出力は、 たとえば以下のようになります。 class@anonymous/in/oNi1A0x7f8636ad2021 読み取り専用の無名クラス PHP 8.3.0 以降では、 無名クラスにも readonly を適用できます。 例1 読み取り ...
https://man.mtool.work/php/8.3/language.oop5.anonymous.html
無名クラス 11374
« トレイト オーバーロード » PHP Manual クラスとオブジェクト 無名クラス 検索 無名クラス 無名クラスは、その場限りの使い捨てのオブジェクトが必要になった場合に便利です。 <?php // 明示的にクラスを宣言して使う class Logger { public function log ( ... ic function __construct ( $num ) { $this -> num = $num ; } use SomeTrait ; }); 上の例の出力は以下となります。 object(class@anonymous)#1 (1) { ["Command line code0x104c5b612":"class@anonymous":private]=> int(10) } 無名クラスを別のクラス内で作っても、外側の ... 下となります。 6 同じ無名クラス宣言から作ったすべてのオブジェクトは、その同じクラスのインスタンスとなります。 <?php function anonymous_class () { return new class {}; } if ( get_class ( anonymous_class ()) === get_class ( anonymous_class ())) { echo '同じク ... するコードを書いてはいけません。 <?php echo get_class (new class {}); 上の例の出力は、 たとえば以下のようになります。 class@anonymous/in/oNi1A0x7f8636ad2021 読み取り専用の無名クラス PHP 8.3.0 以降では、 無名クラスにも readonly を適用できます。 例1 読み取り ...
https://man.mtool.work/php/8.3/language.oop5.anonymous.html
Channel Construction 10299
« parallel\Channel parallel\Channel::make » PHP Manual parallel\Channel Channel Construction 検索 parallel\Channel::__construct (1.1.0) parallel\Channel::__construct — Channel Construction 説明 public function parallel\Channel::__construct ... () Shall make an anonymous unbuffered channel public function parallel\Channel::__construct ( int $capacity ) Shall make an anonymous buffered channe ... acity May be Channel::Infinite or a positive integer 関連キーワード: Channel parallel construct Construction make capacity anonymous channel unbuffered buffered given Infinite positive integer ...
https://man.mtool.work/php/8.3/parallel-channel.construct.html
Channel Construction 10210
« parallel\Channel parallel\Channel::make » PHP Manual parallel\Channel Channel Construction 検索 parallel\Channel::__construct (1.1.0) parallel\Channel::__construct — Channel Construction 説明 public function parallel\Channel::__construct ... () Shall make an anonymous unbuffered channel public function parallel\Channel::__construct ( int $capacity ) Shall make an anonymous buffered channe ... be Channel::Infinite or a positive integer 関連キーワード: Channel parallel construct Construction make capacity function anonymous channel Search unbuffered int buffered given パラメータ Infinite positive integer navigate Enter ...
https://man.mtool.work/php/8.3/parallel-channel.construct.html
The parallel\Channel class 9665
« parallel\Future::value parallel\Channel::__construct » PHP Manual parallel The parallel\Channel class 検索 The parallel\Channel class (0.9.0) Unbuffered Channels An unbuffered channel will block on calls to parallel\Channel::send() until ... ver a closure is executed that was transmitted by a channel, static state will be as it was when the closure was buffered. Anonymous Channels The anonymous channel constructor allows the programmer to avoid assigning names to every channel: parallel will ... generate a unique name for anonymous channels. クラス概要 final class parallel\Channel { /* Anonymous Constructor */ public function __construct () public func ...
https://man.mtool.work/php/8.3/class.parallel-channel.html
The parallel\Channel class 9665
« parallel\Future::value parallel\Channel::__construct » PHP Manual parallel The parallel\Channel class 検索 The parallel\Channel class (0.9.0) Unbuffered Channels An unbuffered channel will block on calls to parallel\Channel::send() until ... ver a closure is executed that was transmitted by a channel, static state will be as it was when the closure was buffered. Anonymous Channels The anonymous channel constructor allows the programmer to avoid assigning names to every channel: parallel will ... generate a unique name for anonymous channels. クラス概要 final class parallel\Channel { /* Anonymous Constructor */ public function __construct () public func ...
https://man.mtool.work/php/8.3/class.parallel-channel.html
Wrap a PHP callable in a LuaSandboxFunction 8324
« LuaSandbox::unpauseUsageTimer LuaSandboxFunction » PHP Manual LuaSandbox Wrap a PHP callable in a LuaSandboxFunction 検索 LuaSandbox::wrapPhpFunction (PECL luasandbox >= 1.2.0) LuaSandbox::wrapPhpFunction — Wrap a PHP callable in a LuaSan ... callable $function ): LuaSandboxFunction Wraps a PHP callable in a LuaSandboxFunction , so it can be passed into Lua as an anonymous function. The function must return either an array of values (which may be empty), or null which is equivalent to returnin ... allable function Wrap wrapPhpFunction return array values empty functions unpauseUsageTimer Search luasandbox Wraps passed anonymous null equivalent ...
https://man.mtool.work/php/8.3/luasandbox.wrapphpfunction.html
Wrap a PHP callable in a LuaSandboxFunction 8324
« LuaSandbox::unpauseUsageTimer LuaSandboxFunction » PHP Manual LuaSandbox Wrap a PHP callable in a LuaSandboxFunction 検索 LuaSandbox::wrapPhpFunction (PECL luasandbox >= 1.2.0) LuaSandbox::wrapPhpFunction — Wrap a PHP callable in a LuaSan ... callable $function ): LuaSandboxFunction Wraps a PHP callable in a LuaSandboxFunction , so it can be passed into Lua as an anonymous function. The function must return either an array of values (which may be empty), or null which is equivalent to returnin ... xFunction LuaSandbox callable Wrap wrapPhpFunction return values empty functions unpauseUsageTimer luasandbox Wraps passed anonymous equivalent returning Exceptions raised errors however LuaSandboxRuntimeError exceptions caught inside pcall ...
https://man.mtool.work/php/8.3/luasandbox.wrapphpfunction.html
PREV 1 2 3 4 5 6 NEXT