« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 35 for Items (0.002 sec.)
DOMNodelist::item — インデックスで指定したノードを取得する | PHP 8.3 13509
DOMNodelist::item (PHP 5, PHP 7, PHP 8) DOMNodelist::item — インデックスで指定したノードを取得する 説明 public function DOMNodeList::item ( int $index ): DOMElement | DOMNode | DOMNameSpaceNode | null DOMNodeList オブジェクトから、 index で ... す。 例 例1 テーブル内のすべての要素を取得する <?php $doc = new DOMDocument ; $doc -> load ( 'examples/book-docbook.xml' ); $items = $doc -> getElementsByTagName ( 'entry' ); for ( $i = 0 ; $i < $items -> length ; $i ++) { echo $items -> item ( $i )-> n ... "\n" ; } ?> 例2 配列構文で要素にアクセスする <?php $doc = new DOMDocument ; $doc -> load ( 'examples/book-docbook.xml' ); $items = $doc -> getElementsByTagName ( 'entry' ); for ( $i = 0 ; $i < $items -> length ; $i ++) { echo $items [ $i ]-> nodeValue ... "\n" ; } ?> 例3 foreach でアイテムを走査する <?php $doc = new DOMDocument ; $doc -> load ( 'examples/book-docbook.xml' ); $items = $doc -> getElementsByTagName ( 'entry' ); foreach ( $items as $item ) { echo $item -> nodeValue . "\n" ; } ?> 上の例の出 ...
https://man.mtool.work/php/8.3/domnodelist.item.html
Memcached::setMulti — 複数のアイテムを格納する | PHP 8.3 11393
Memcached::setMulti (PECL memcached >= 0.1.0) Memcached::setMulti — 複数のアイテムを格納する 説明 public function Memcached::setMulti ( array $items , int $expiration = 0 ): bool Memcached::setMulti() は Memcached::set() と似ていますが、ひと ... つのキーのアイテムではなく items で設定した複数のアイテムに対して動作します。 有効期限 expiration は、すべてのアイテムに同時に適用されます。 パラメータ ite ... を使用しましょう。 例 例1 Memcached::setMulti() の例 <?php $m = new Memcached (); $m -> addServer ( 'localhost' , 11211 ); $items = array( 'key1' => 'value1' , 'key2' => 'value2' , 'key3' => 'value3' ); $m -> setMulti ( $items , time () + 300 ); ?> 参考 ...
https://man.mtool.work/php/8.3/memcached.setmulti.html
gnupg_gettrustlist — 信頼済みのアイテムを検索する | PHP 8.3 10725
gnupg_gettrustlist (PECL gnupg >= 0.5) gnupg_gettrustlist — 信頼済みのアイテムを検索する 説明 function gnupg_gettrustlist ( resource $identifier , string $pattern ): ? array パラメータ identifier gnupg_init() あるいは gnupg のコールで得られ ... 配列を返します。 失敗した場合は、 null を返します。 例 例1 手続き型の gnupg_gettrustlist() の例 <?php $res = gnupg_init (); $items = gnupg_gettrustlist ( $res ); print_r ( $items ); ?> 例2 オブジェクト指向の gnupg_gettrustlist() の例 <?php $gpg = new gn ... upg (); $items = $gpg -> gettrustlist (); print_r ( $items ); ?> 他のマニュアルの関連ページ FastAPI クエリパラメータと文字列の検証 FastAP ...
https://man.mtool.work/php/8.3/function.gnupg-gettrustlist.html
ZMQPoll::count — Count items in the poll set | PHP 8.3 10534
ZMQPoll::count (PECL zmq >= 0.5.0) ZMQPoll::count — Count items in the poll set 説明 public function ZMQPoll::count (): int Count the items in the poll set. パラメータ この関数にはパラメータはありません。 戻り値 Returns an int representing ... the amount of items in the poll set. 他のマニュアルの関連ページ FastAPI Testing Events: startup Vim usr_50 FastAPI クッキーのパラメータ DuckDB ...
https://man.mtool.work/php/8.3/zmqpoll.count.html
NoDiscard アトリビュート | PHP 8.3 10438
NoDiscard アトリビュート (PHP 8 >= 8.5.0) はじめに このアトリビュートは、関数やメソッドの戻り値を無視すべきでないことを示すために使います。 戻り値がまったく使われなかった場合、警告が発生します。 これは、戻り値を確認しないことがバグにつながる ... てのアイテムを処理し、各アイテムの処理結果を * 配列で返す。`null` は成功を、Exception はエラーを示す。 * 結果の配列のキーは $items 配列のキーと一致する。 * * @param array<string> $items * @return array<null|Exception> */ #[ \NoDiscard ( "as processing m ... ight fail for individual items" )] function bulk_process (array $items ): array { $results = []; foreach ( $items as $key => $item ) { if ( \random_int ( ... = new \Exception ( "Failed to process { $item } ." ); } $results [ $key ] = $error ; } return $results ; } bulk_process ( $items ); ?> 上の例の PHP 8.5 での出力は、たとえば以下のようになります。: Warning: The return value of function bulk_process() sh ...
https://man.mtool.work/php/8.3/class.nodiscard.html
ZMQPoll::poll — Poll the items | PHP 8.3 9468
ZMQPoll::poll (PECL zmq >= 0.5.0) ZMQPoll::poll — Poll the items 説明 public function ZMQPoll::poll ( array &$readable , array &$writable , int $timeout = -1 ): int Polls the items in the current poll set. The readable and writable items ar ... he poll timeout is defined in milliseconds, rather than microseconds. 戻り値 Returns an integer representing the amount of items with activity. エラー / 例外 Throws ZMQPollException on error. 例 例1 A ZMQPoll() example Create a simple poll server <?ph ...
https://man.mtool.work/php/8.3/zmqpoll.poll.html
The ZMQPoll class | PHP 8.3 8608
The ZMQPoll class (PECL zmq >= 0.5.0) はじめに クラス概要 class ZMQPoll { /* メソッド */ public function add ( mixed $entry , int $type ): string public function clear (): ZMQPoll public function count (): int public function getLastErrors ... ed $item ): bool } 目次 ZMQPoll::add — Add item to the poll set ZMQPoll::clear — Clear the poll set ZMQPoll::count — Count items in the poll set ZMQPoll::getLastErrors — Get poll errors ZMQPoll::poll — Poll the items ZMQPoll::remove — Remove item from ...
https://man.mtool.work/php/8.3/class.zmqpoll.html
Threaded::chunk — Manipulation | PHP 8.3 8513
Threaded::chunk (PECL pthreads >= 2.0.0) Threaded::chunk — Manipulation 説明 public function Threaded::chunk ( int $size , bool $preserve ): array Fetches a chunk of the objects property table of the given size, optionally preserving keys パ ... ラメータ size The number of items to fetch preserve Preserve the keys of members, by default false 戻り値 An array of items from the objects property table ...
https://man.mtool.work/php/8.3/threaded.chunk.html
Memcached::getMulti — 複数のアイテムを取得する | PHP 8.3 8417
Memcached::getMulti (PECL memcached >= 0.1.0) Memcached::getMulti — 複数のアイテムを取得する 説明 public function Memcached::getMulti ( array $keys , int $get_flags = 0 ): array | false Memcached::getMulti() は Memcached::get() と似ています ... e for Memcached v3 <?php // Valid for v3 of the extension $m = new Memcached (); $m -> addServer ( 'localhost' , 11211 ); $items = array( 'key1' => 'value1' , 'key2' => 'value2' , 'key3' => 'value3' ); $m -> setMulti ( $items ); $result = $m -> getMul ... d v1 and v2 <?php // Valid for v1 and v2 of the extension $m = new Memcached (); $m -> addServer ( 'localhost' , 11211 ); $items = array( 'key1' => 'value1' , 'key2' => 'value2' , 'key3' => 'value3' ); $m -> setMulti ( $items ); $result = $m -> getMul ...
https://man.mtool.work/php/8.3/memcached.getmulti.html
Memcache::getExtendedStats — プール内のすべてのサーバーの統計情報を取得する | P... 8226
Memcache::getExtendedStats memcache_get_extended_stats (PECL memcache >= 2.0.0) Memcache::getExtendedStats -- memcache_get_extended_stats — プール内のすべてのサーバーの統計情報を取得する 説明 function Memcache::getExtendedStats ( string $ty ... ジョン 2.0.0 で追加されました。 パラメータ type 取得する統計情報の型。使用可能な値は {reset, malloc, maps, cachedump, slabs, items, sizes} のいずれかです。 memcached プロトコルの仕様によると、これらの追加の引数は 「memcache の開発者の都合により、変更され ... 56 [uptime] => 603011 [time] => 1133810435 [version] => 1.1.12 [rusage_user] => 0.451931 [rusage_system] => 0.634903 [curr_items] => 2483 [total_items] => 3079 [bytes] => 2718136 [curr_connections] => 2 [total_connections] => 807 [connection_structure ...
https://man.mtool.work/php/8.3/memcache.getextendedstats.html
PREV 1 2 3 4 NEXT