« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 65 for Because (0.001 sec.)
Philosophy | PHP 8.3 13641
Philosophy This section contains philosophies important to writing parallel code and some details about the internal implementation of parallel. Do not communicate by sharing memory; instead, share memory by communicating. This philosophy w ... er a channel is the only instance in which a thread directly reads memory allocated by another thread, it can do so safely because the thread that owns the memory is waiting for the read to complete before it can continue to manipulate it, and the threa ... model of threading. It means the programmer does not need to consider that threads may be manipulating data concurrently, because that is not possible. This also makes PHP the perfect platform for implementing a parallel concurrency API based on CSP (m ... essage passing over channels), because PHP itself is shared nothing - PHP threads operate in their own virtual address space by default, and so may only share me ...
https://man.mtool.work/php/8.3/philosophy.parallel.html
About event persistence | PHP 8.3 10864
About event persistence By default, whenever a pending event becomes active (because its file descriptor is ready to read or write, or because its timeout expires), it becomes non-pending right before its callback is executed. Thus, to make ...
https://man.mtool.work/php/8.3/event.persistence.html
EvWatcher::keepalive — Configures whether to keep the loop from returning | PHP... 10621
EvWatcher::keepalive (PECL ev >= 0.2.0) EvWatcher::keepalive — Configures whether to keep the loop from returning 説明 public function EvWatcher::keepalive ( bool $value = ? ): bool Configures whether to keep the loop from returning. With k ... ve keepalive value true by default. Clearing keepalive status is useful when returning from Ev::run() / EvLoop::run() just because of the watcher is undesirable. It could be a long running UDP socket watcher or so. パラメータ value With keepalive value ... ns the previous state. 例 例1 Register an I/O watcher for some UDP socket but do not keep the event loop from running just because of that watcher. <?php $udp_socket = ... $udp_watcher = new EvIo ( $udp_socket , Ev :: READ , function () { /* ... */ }); ...
https://man.mtool.work/php/8.3/evwatcher.keepalive.html
Ds\Hashable::hash — Returns a scalar value to be used as a hash value | PHP 8.3 9347
Ds\Hashable::hash (PECL ds >= 1.0.0) Ds\Hashable::hash — Returns a scalar value to be used as a hash value 説明 abstract public function Ds\Hashable::hash (): mixed Returns a scalar value to be used as the hash value of the objects. While t ... true for all objects and nothing would break - the only implication would be that hash tables then turn into linked lists because all your objects will be hashed to the same bucket. It's therefore very important that you pick a good hash value, such as ... ce. 警告 Do not pick a value that might change within the object, such as a public property. Hash table lookups would fail because the hash has changed. 警告 All objects that are equal must have the same hash value. パラメータ この関数にはパラメータはあ ...
https://man.mtool.work/php/8.3/ds-hashable.hash.html
The EvIo class | PHP 8.3 9103
The EvIo class (PECL ev >= 0.2.0) はじめに EvIo watchers check whether a file descriptor(or socket, or a stream castable to numeric file descriptor) is readable or writable in each iteration of the event loop, or, more precisely, when readi ... uld not block the process and writing would at least be able to write some data. This behaviour is called level-triggering because events are kept receiving as long as the condition persists. To stop receiving events just stop the watcher. The number of ... false readiness notifications, i.e. the callback might be called with Ev::READ but a subsequent read() will actually block because there is no data. It is very easy to get into this situation. Thus it is best to always use non-blocking I/O: An extra rea ...
https://man.mtool.work/php/8.3/class.evio.html
実行時設定 | PHP 8.3 9103
実行時設定 php.ini の設定により動作が変化します。 Yac 設定オプション 名前 デフォルト 変更可能 変更履歴 yac.compress_threshold 4K INI_SYSTEM yac.debug 0 INI_ALL yac.enable 1 INI_SYSTEM yac.enable_cli 0 INI_SYSTEM yac.keys_memory_size 8M INI_ ... d. Values above the 1M stored entry limit ( YAC_MAX_RAW_COMPRESSED_LEN ) are always compressed regardless of this setting, because they cannot be stored uncompressed. The default of 4K enables compression; -1 disables it for values below the stored entr ... throws an exception. yac.enable_cli int Whether Yac is enabled when running under the CLI SAPI. It is disabled by default because command line scripts usually start and stop immediately, and the shared memory segment would be created for nothing. yac.k ...
https://man.mtool.work/php/8.3/yac.configuration.html
str_contains — 指定された部分文字列が、文字列に含まれるかを調べる | PHP 8.3 8846
str_contains (PHP 8) str_contains — 指定された部分文字列が、文字列に含まれるかを調べる 説明 function str_contains ( string $haystack , string $needle ): bool needle が haystack に含まれるかを調べます。 大文字小文字は区別されます。 パラメータ ... tr_contains ( $string , 'Lazy' )) { echo 'The string "Lazy" was found in the string' ; } else { echo '"Lazy" was not found because the case does not match' ; } ?> 上の例の出力は以下となります。 The string 'lazy' was found in the string "Lazy" was not fo ... und because the case does not match 注意 注意 : この関数はバイナリデータに対応しています。 参考 str_ends_with() - 文字列が、指定された ...
https://man.mtool.work/php/8.3/function.str-contains.html
str_ends_with — 文字列が、指定された文字列で終わるかを調べる。 | PHP 8.3 8846
str_ends_with (PHP 8) str_ends_with — 文字列が、指定された文字列で終わるかを調べる。 説明 function str_ends_with ( string $haystack , string $needle ): bool haystack が needle で終わるかを調べます。 大文字小文字は区別されます。 パラメータ h ... ; } if ( str_ends_with ( $string , 'Fence' )) { echo 'The string ends with "Fence"' ; } else { echo '"Fence" was not found because the case does not match' ; } ?> 上の例の出力は以下となります。 The string ends with 'fence' "Fence" was not found because ...
https://man.mtool.work/php/8.3/function.str-ends-with.html
str_starts_with — 文字列が指定された部分文字列で始まるかを調べる | PHP 8.3 8846
str_starts_with (PHP 8) str_starts_with — 文字列が指定された部分文字列で始まるかを調べる 説明 function str_starts_with ( string $haystack , string $needle ): bool haystack が needle で始まるかを調べます。 大文字小文字は区別されます。 パラメ ... " ; } if ( str_starts_with ( $string , 'the' )) { echo 'The string starts with "the"' ; } else { echo '"the" was not found because the case does not match' ; } ?> 上の例の出力は以下となります。 The string starts with 'The' "the" was not found because th ...
https://man.mtool.work/php/8.3/function.str-starts-with.html
The EvTimer class | PHP 8.3 8602
The EvTimer class (PECL ev >= 0.2.0) はじめに EvTimer watchers are simple relative timers that generate an event after a given time, and optionally repeating in regular intervals after that. The timers are based on real time, that is, if on ... after an hour and resets the system clock to January last year , it will still time out after(roughly) one hour. "Roughly" because detecting time jumps is hard, and some inaccuracies are unavoidable. The callback is guaranteed to be invoked only after i ... conds, then it will normally trigger at exactly 10 second intervals. If, however, the script cannot keep up with the timer because it takes longer than those 10 seconds to do) the timer will not fire more than once per event loop iteration. クラス概要 c ...
https://man.mtool.work/php/8.3/class.evtimer.html
PREV 1 2 3 4 5 6 7 NEXT