« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 9 of about 9 for Doing (0.002 sec.)
Error::getPrevious — 直前の Throwable を返す | PHP 8.3 11000
Error::getPrevious (PHP 7, PHP 8) Error::getPrevious — 直前の Throwable を返す 説明 final public function Error::getPrevious (): ? Throwable 直前の Throwable( Error::__construct() の第三パラメータ)を返します。 パラメータ この関数にはパラメ ... ループし、出力します。 <?php class MyCustomError extends Error {} function doStuff () { try { throw new TypeError ( "You are doing it wrong!" , 112 ); } catch( Error $e ) { throw new MyCustomError ( "Something happened" , 911 , $e ); } } try { doStuff ( ... たとえば以下のようになります。 /home/bjori/ex.php:8 Something happened (911) [MyCustomError] /home/bjori/ex.php:6 You are doing it wrong! (112) [TypeError] 参考 Throwable::getPrevious() - ひとつ前の Throwable を返す 他のマニュアルの関連ページ Linux J ...
https://man.mtool.work/php/8.3/error.getprevious.html
QuickHashIntHash::exists — This method checks whether a key is part of the hash... 11000
QuickHashIntHash::exists (PECL quickhash >= Unknown) QuickHashIntHash::exists — This method checks whether a key is part of the hash 説明 public function QuickHashIntHash::exists ( int $key ): bool This method checks whether an entry with t ... "Adding elements: " , microtime ( true ), "\n" ; foreach( $existingEntries as $key ) { $hash -> add ( $key , 56 ); } echo "Doing 1000 tests: " , microtime ( true ), "\n" ; foreach( $testForEntries as $key ) { $foundCount += $hash -> exists ( $key ); } ... "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 Creating hash: 1263588703.0748 Adding elements: 1263588703.0757 Doing 1000 tests: 1263588703.7851 Done, 898 found: 1263588703.7897 他のマニュアルの関連ページ Linux JM hash(3) Linux JM rand(3) ...
https://man.mtool.work/php/8.3/quickhashinthash.exists.html
QuickHashIntSet::exists — This method checks whether a key is part of the set |... 11000
QuickHashIntSet::exists (PECL quickhash >= Unknown) QuickHashIntSet::exists — This method checks whether a key is part of the set 説明 public function QuickHashIntSet::exists ( int $key ): bool This method checks whether an entry with the p ... echo "Adding elements: " , microtime ( true ), "\n" ; foreach( $existingEntries as $key ) { $set -> add ( $key ); } echo "Doing 1000 tests: " , microtime ( true ), "\n" ; foreach( $testForEntries as $key ) { $foundCount += $set -> exists ( $key ); } ... , "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 Creating set: 1263588703.0748 Adding elements: 1263588703.0757 Doing 1000 tests: 1263588703.7851 Done, 898 found: 1263588703.7897 他のマニュアルの関連ページ Linux JM rand(3) DuckDB Loops ...
https://man.mtool.work/php/8.3/quickhashintset.exists.html
Exception::getPrevious — 前の例外(Throwable)を返す | PHP 8.3 10767
Exception::getPrevious (PHP 5 >= 5.3.0, PHP 7, PHP 8) Exception::getPrevious — 前の例外(Throwable)を返す 説明 final public function Exception::getPrevious (): ? Throwable 前に発生した Throwable ( Exception::__construct() に渡された第三パラメ ... php class MyCustomException extends Exception {} function doStuff () { try { throw new InvalidArgumentException ( "You are doing it wrong!" , 112 ); } catch( Exception $e ) { throw new MyCustomException ( "Something happened" , 911 , $e ); } } try { d ... とえば以下のようになります。 /home/bjori/ex.php:8 Something happened (911) [MyCustomException] /home/bjori/ex.php:6 You are doing it wrong! (112) [InvalidArgumentException] 参考 Throwable::getPrevious() - ひとつ前の Throwable を返す 他のマニュアルの関連 ...
https://man.mtool.work/php/8.3/exception.getprevious.html
The parallel\Runtime class | PHP 8.3 8196
The parallel\Runtime class (0.8.0) Runtime Objects Each runtime represents a single PHP thread, the thread is created (and bootstrapped) upon construction. The thread then waits for tasks to be scheduled: Scheduled tasks will be executed FI ... ed by the normal scoping rules of PHP objects, it will first execute all of the tasks that were scheduled, and block while doing so. Runtime Bootstrapping When a new runtime is created, it does not share code with the thread (or process) that created ...
https://man.mtool.work/php/8.3/class.parallel-runtime.html
The EventBase class | PHP 8.3 7495
The EventBase class (PECL event >= 1.2.6-beta) はじめに EventBase class represents libevent's event base structure. It holds a set of events and can poll to determine which events are active. Each event base has a method , or a backend that ... ster, but it may trigger a Linux bug: it is not safe to use this flag if one has any fds cloned by dup(), or its variants. Doing so will produce strange and hard-to-diagnose bugs. This flag can also be activated by setting the EVENT_EPOLL_USE_CHANGELI ...
https://man.mtool.work/php/8.3/class.eventbase.html
トレイト | PHP 8.3 7495
トレイト PHP は、コードを再利用するための「トレイト」という仕組みを実装しています。 トレイトは、PHP のような単一継承言語でコードを再利用するための仕組みのひとつです。 トレイトは、単一継承の制約を減らすために作られたもので、 いくつかのメソッ ... の出力は以下となります。 1 1 例10 staticメソッド <?php trait StaticExample { public static function doSomething () { return 'Doing something' ; } } class Example { use StaticExample ; } echo Example :: doSomething (); ?> 上の例の出力は以下となります。 D ...
https://man.mtool.work/php/8.3/language.oop5.traits.html
The EventBuffer class | PHP 8.3 7261
The EventBuffer class (PECL event >= 1.5.0) はじめに EventBuffer represents Libevent's "evbuffer", an utility functionality for buffered I/O. Event buffers are meant to be generally useful for doing the "buffer" part of buffered network I/O ...
https://man.mtool.work/php/8.3/class.eventbuffer.html
定義済み定数 | PHP 8.3 6578
定義済み定数 目次 フェッチモード 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 カーソル PDO::ATTR_CURSOR_NAME も参照ください。 PDO::FETC ... :ATTR_DRIVER_NAME を使う <?php if ( $db -> getAttribute ( PDO :: ATTR_DRIVER_NAME ) == 'mysql' ) { echo "Running on mysql; doing something mysql specific here\n" ; } ?> PDO::ATTR_ORACLE_NULLS ( int ) データをフェッチ時に、 空文字を SQL の NULL 値に変換 ...
https://man.mtool.work/php/8.3/pdo.constants.html
PREV 1 NEXT