« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for Seekable (0.002 sec.)
stream_get_meta_data — ヘッダーあるいはメタデータをストリームまたはファイルポイ... 11228
stream_get_meta_data (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) stream_get_meta_data — ヘッダーあるいはメタデータをストリームまたはファイルポインタから取得する 説明 function stream_get_meta_data ( resource $stream ): array 既存の stream に関する ... を参照ください。 mode (string) - このストリームに要求される アクセスモード( fopen() リファレンスの表 1 を参照ください)。 seekable (bool) - 現在のストリーム内で 移動が可能かどうか。 uri (string) - このストリームに関連付けられた URI / ファイル名。 crypto ... ype' => string(4) "http" 'stream_type' => string(14) "tcp_socket/ssl" 'mode' => string(1) "r" 'unread_bytes' => int(1256) 'seekable' => bool(false) 'uri' => string(23) "http://www.example.com/" } 例2 stream_socket_client() を使い、https 経由で stream_get ... true) 'eof' => bool(false) 'stream_type' => string(14) "tcp_socket/ssl" 'mode' => string(2) "r+" 'unread_bytes' => int(0) 'seekable' => bool(false) } 注意 注意 : この関数は、 Socket 拡張モジュール で作成したソケットでは動作しません。 参考 get_headers() - ...
https://man.mtool.work/php/8.3/function.stream-get-meta-data.html
SeekableIterator インターフェイス | PHP 8.3 7485
SeekableIterator インターフェイス (PHP 5 >= 5.1.0, PHP 7, PHP 8) はじめに Seekable イテレータです。 インターフェイス概要 interface SeekableIterator extends Iterator { /* メソッド */ public function seek ( int $offset ): void /* 継承したメソ ... id public function Iterator::rewind (): void public function Iterator::valid (): bool } 例 例1 基本的な使用法 この例では、 SeekableIterator を作成して位置を移動し、無効な位置を扱います。 <?php class MySeekableIterator implements SeekableIterator { privat ... e $position ; private $array = array( "first element" , "second element" , "third element" , "fourth element" ); /* SeekableIterator インターフェイスで必要なメソッド群 */ public function seek ( $position ) { if (!isset( $this -> array [ $position ... this -> position ; } public function valid () { return isset( $this -> array [ $this -> position ]); } } try { $it = new MySeekableIterator ; echo $it -> current (), "\n" ; $it -> seek ( 2 ); echo $it -> current (), "\n" ; $it -> seek ( 1 ); echo $it -> ...
https://man.mtool.work/php/8.3/class.seekableiterator.html
PREV 1 NEXT