« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 71 for items (0.003 sec.)
インデックスで指定したノードを取得する 10991
« DOMNodeList::getIterator DOMNotation » PHP Manual DOMNodeList インデックスで指定したノードを取得する 検索 DOMNodelist::item (PHP 5, PHP 7, PHP 8) DOMNodelist::item — インデックスで指定したノードを取得する 説明 public function DOMNodeList: ... す。 例 例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
インデックスで指定したノードを取得する 10991
« DOMNodeList::getIterator DOMNotation » PHP Manual DOMNodeList インデックスで指定したノードを取得する 検索 DOMNodelist::item (PHP 5, PHP 7, PHP 8) DOMNodelist::item — インデックスで指定したノードを取得する 説明 public function DOMNodeList: ... す。 例 例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
Count items in the poll set 10598
« ZMQPoll::clear ZMQPoll::getLastErrors » PHP Manual ZMQPoll Count items in the poll set 検索 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. 関連キーワード: ZMQPoll items poll Count count clear getLastErrors representing amount ...
https://man.mtool.work/php/8.3/zmqpoll.count.html
Count items in the poll set 10401
« ZMQPoll::clear ZMQPoll::getLastErrors » PHP Manual ZMQPoll Count items in the poll set 検索 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. 関連キーワード: ZMQPoll items poll set Count count int パラメータ clear Search getLastErrors zmq function ...
https://man.mtool.work/php/8.3/zmqpoll.count.html
複数のアイテムを格納する 9473
« Memcached::setEncodingKey Memcached::setMultiByKey » PHP Manual Memcached 複数のアイテムを格納する 検索 Memcached::setMulti (PECL memcached >= 0.1.0) Memcached::setMulti — 複数のアイテムを格納する 説明 public function Memcached::setMulti ... ( array $items , int $expiration = 0 ): bool Memcached::setMulti() は Memcached::set() と似ていますが、ひとつのキーのアイテムではなく ite ... ms で設定した複数のアイテムに対して動作します。 有効期限 expiration は、すべてのアイテムに同時に適用されます。 パラメータ items サーバーに格納する キー/値 のペアの配列。 expiration 期限切れとなるまでの時間。デフォルトは 0。詳細な情報は 有効期限 を参照 ... を使用しましょう。 例 例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
複数のアイテムを格納する 9417
« Memcached::setEncodingKey Memcached::setMultiByKey » PHP Manual Memcached 複数のアイテムを格納する 検索 Memcached::setMulti (PECL memcached >= 0.1.0) Memcached::setMulti — 複数のアイテムを格納する 説明 public function Memcached::setMulti ... ( array $items , int $expiration = 0 ): bool Memcached::setMulti() は Memcached::set() と似ていますが、ひとつのキーのアイテムではなく ite ... ms で設定した複数のアイテムに対して動作します。 有効期限 expiration は、すべてのアイテムに同時に適用されます。 パラメータ items サーバーに格納する キー/値 のペアの配列。 expiration 期限切れとなるまでの時間。デフォルトは 0。詳細な情報は 有効期限 を参照 ... を使用しましょう。 例 例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
信頼済みのアイテムを検索する 9277
« gnupg_getprotocol gnupg_import » PHP Manual GnuPG 関数 信頼済みのアイテムを検索する 検索 gnupg_gettrustlist (PECL gnupg >= 0.5) gnupg_gettrustlist — 信頼済みのアイテムを検索する 説明 function gnupg_gettrustlist ( resource $identifier , st ... 配列を返します。 失敗した場合は、 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 ); ?> 関連キーワード: gnupg gettrustlist 信頼 アイテム items identifier patter ...
https://man.mtool.work/php/8.3/function.gnupg-gettrustlist.html
信頼済みのアイテムを検索する 9220
« gnupg_getprotocol gnupg_import » PHP Manual GnuPG 関数 信頼済みのアイテムを検索する 検索 gnupg_gettrustlist (PECL gnupg >= 0.5) gnupg_gettrustlist — 信頼済みのアイテムを検索する 説明 function gnupg_gettrustlist ( resource $identifier , st ... 配列を返します。 失敗した場合は、 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 ); ?> 関連キーワード: gnupg gettrustlist 信頼 アイテム items identifier patter ...
https://man.mtool.work/php/8.3/function.gnupg-gettrustlist.html
NoDiscard アトリビュート 8756
« Deprecated::__construct NoDiscard::__construct » PHP Manual 定義済みのアトリビュート NoDiscard アトリビュート 検索 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
Poll the items 8756
« ZMQPoll::getLastErrors ZMQPoll::remove » PHP Manual ZMQPoll Poll the items 検索 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 are returned in the readable and writable parameters. ZMQPoll::ge ... 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 ... ption $e ) { echo "send failed: " . $e -> getMessage () . "\n" ; } } } } ?> 関連キーワード: poll readable writable ZMQPoll items array echo Poll errors server events getLastErrors timeout returned operation error Create new object id ...
https://man.mtool.work/php/8.3/zmqpoll.poll.html
PREV 1 2 3 4 5 6 7 8 NEXT