« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 190 for Rewind (0.004 sec.)
Generator::rewind — 最初の yield までジェネレータを実行する | PHP 8.3 9322
Generator::rewind (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::rewind — 最初の yield までジェネレータを実行する 説明 public function Generator::rewind (): void 最初の yield までジェネレータを実行します。 ジェネレータが既に 最初の yield に到達し ... に 実行されるのでは ありません 。 パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Generator::rewind() の例 <?php function generator (): Generator { echo "I'm a generator!\n" ; for ( $i = 1 ; $i <= 3 ; $i ++) { yield $i ; } ... 期化 $generator = generator (); // まだ達していない場合、最初の yield 式の開始までジェネレータを巻き戻します。 $generator -> rewind (); // I'm a generator! // ここでは何も起きません; ジェネレータは既に巻き戻されています。 $generator -> rewind (); // No o ... 再開します。 // エラーは発生しません。なぜんら、ジェネレータは最初の yield を越えて // 進んでいないからです。 $generator -> rewind (); echo $generator -> current (), PHP_EOL ; // 1 // エラーは起きません。 // ジェネレータはまだ最初の yield に留まっていま ...
https://man.mtool.work/php/8.3/generator.rewind.html
FilesystemIterator::rewind — 先頭に巻き戻す | PHP 8.3 8863
FilesystemIterator::rewind (PHP 5 >= 5.3.0, PHP 7, PHP 8) FilesystemIterator::rewind — 先頭に巻き戻す 説明 public function FilesystemIterator::rewind (): void ディレクトリを先頭に巻き戻します。 パラメータ この関数にはパラメータはありません。 ... 戻り値 値を返しません。 例 例1 FilesystemIterator::rewind() の例 <?php $iterator = new FilesystemIterator ( dirname ( __FILE__ ), FilesystemIterator :: KEY_AS_FILENAME ); echo $ite ... rator -> key () . "\n" ; $iterator -> next (); echo $iterator -> key () . "\n" ; $iterator -> rewind (); echo $iterator -> key () . "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 apple.jpg banana.jpg apple.jpg 参 ... 考 DirectoryIterator::rewind() - DirectoryIterator を最初に巻き戻す ...
https://man.mtool.work/php/8.3/filesystemiterator.rewind.html
DirectoryIterator::rewind — DirectoryIterator を最初に巻き戻す | PHP 8.3 8459
DirectoryIterator::rewind (PHP 5, PHP 7, PHP 8) DirectoryIterator::rewind — DirectoryIterator を最初に巻き戻す 説明 public function DirectoryIterator::rewind (): void DirectoryIterator を最初に巻き戻します。 パラメータ この関数にはパラメータ ... はありません。 戻り値 値を返しません。 例 例1 DirectoryIterator::rewind() の例 <?php $iterator = new DirectoryIterator ( dirname ( __FILE__ )); $iterator -> next (); echo $iterator -> key (); // ... 1 $iterator -> rewind (); // 最初に巻き戻します echo $iterator -> key (); //0 ?> 参考 DirectoryIterator::current() - 現在の DirectoryIterator ア ... に移動する DirectoryIterator::valid() - 現在の DirectoryIterator の位置が有効なファイルであるかどうかチェックする Iterator::rewind() - イテレータの最初の要素に巻き戻す 他のマニュアルの関連ページ Python iter Python functional Python email.iterators ...
https://man.mtool.work/php/8.3/directoryiterator.rewind.html
NoRewindIterator::rewind — 内部イテレータの巻き戻し操作を阻止する | PHP 8.3 8459
NoRewindIterator::rewind (PHP 5 >= 5.1.0, PHP 7, PHP 8) NoRewindIterator::rewind — 内部イテレータの巻き戻し操作を阻止する 説明 public function NoRewindIterator::rewind (): void 内部イテレータの巻き戻し操作を阻止します。 パラメータ この関数に ... はパラメータはありません。 戻り値 値を返しません。 例 例1 NoRewindIterator::rewind() の例 この例は、NoRewindIterator オブジェクトで rewind をコールしても何も起こらないことを示します。 <?php ... $fruits = array( "lemon" , "orange" , "apple" , "pear" ); $noRewindIterator = new NoRewindIterator (new ArrayIterator ( $fruits )); echo $noRewindIterator -> current () . "\n" ; $noRewindIte ... rator -> next (); // イテレータを巻き戻します (何も起こりません) $noRewindIterator -> rewind (); echo $noRewindIterator -> current () . "\n" ; ?> 上の例の出力は以下となります。 lemon orange 他のマニ ...
https://man.mtool.work/php/8.3/norewinditerator.rewind.html
Yaf_Config_Ini::rewind — The rewind purpose | PHP 8.3 8459
Yaf_Config_Ini::rewind (Yaf >=1.0.0) Yaf_Config_Ini::rewind — The rewind purpose 説明 public function Yaf_Config_Ini::rewind (): void 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。 パラメータ この ... ません。 戻り値 他のマニュアルの関連ページ DuckDB Connect DuckDB Write User Defined Functions Docker docker config Linux JM rewind(3) Linux JM ftell(3) Linux JM fsetpos(3) ...
https://man.mtool.work/php/8.3/yaf-config-ini.rewind.html
Yaf_Config_Simple::rewind — The rewind purpose | PHP 8.3 8459
Yaf_Config_Simple::rewind (Yaf >=1.0.0) Yaf_Config_Simple::rewind — The rewind purpose 説明 public function Yaf_Config_Simple::rewind (): void 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。 パラメ ... ません。 戻り値 他のマニュアルの関連ページ DuckDB Connect DuckDB Write User Defined Functions Docker docker config Linux JM rewind(3) Linux JM ftell(3) Linux JM fsetpos(3) ...
https://man.mtool.work/php/8.3/yaf-config-simple.rewind.html
Yaf_Session::rewind — The rewind purpose | PHP 8.3 8459
Yaf_Session::rewind (Yaf >=1.0.0) Yaf_Session::rewind — The rewind purpose 説明 public function Yaf_Session::rewind (): void 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。 パラメータ この関数には ... 他のマニュアルの関連ページ FastAPI SQL (Relational) Databases Linux JM wtmp(5) Linux JM utmpx(5) Linux JM utmp(5) Linux JM rewind(3) Linux JM ftell(3) ...
https://man.mtool.work/php/8.3/yaf-session.rewind.html
rewind — ファイルポインタの位置を先頭に戻す | PHP 8.3 8230
rewind (PHP 4, PHP 5, PHP 7, PHP 8) rewind — ファイルポインタの位置を先頭に戻す 説明 function rewind ( resource $stream ): bool stream のファイル位置指示子を、 ファイルストリームの先頭にセットします。 注意 : 追記モード ("a" もしくは "a+") で ... にオープンされたファイルを指している必要があります。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 rewind() での上書きの例 <?php $handle = fopen ( 'output.txt' , 'r+' ); fwrite ( $handle , 'Really long sentence.' ); rewind ( $ha ... ndle ); fwrite ( $handle , 'Foo' ); rewind ( $handle ); echo fread ( $handle , filesize ( 'output.txt' )); fclose ( $handle ); ?> 上の例の出力は、 たとえば以下のよう ... ル書き込み処理 他のマニュアルの関連ページ Linux JM fread(3) Linux JM fwrite(3) Linux JM fopen(3) Linux JM ftell(3) Linux JM rewind(3) Linux JM fsetpos(3) ...
https://man.mtool.work/php/8.3/function.rewind.html
ArrayIterator::rewind — 配列を最初に巻き戻す | PHP 8.3 8176
ArrayIterator::rewind (PHP 5, PHP 7, PHP 8) ArrayIterator::rewind — 配列を最初に巻き戻す 説明 public function ArrayIterator::rewind (): void イテレータを最初に巻き戻します。 パラメータ この関数にはパラメータはありません。 戻り値 値を返しませ ... ん。 例 例1 ArrayIterator::rewind() の例 <?php $arrayobject = new ArrayObject (); $arrayobject [] = 'zero' ; $arrayobject [] = 'one' ; $arrayobject [] = 'tw ... o' ; $iterator = $arrayobject -> getIterator (); $iterator -> next (); echo $iterator -> key (); //1 $iterator -> rewind (); //最初に巻き戻す echo $iterator -> key (); //0 ?> 他のマニュアルの関連ページ Python iter Python functional Python emai ...
https://man.mtool.work/php/8.3/arrayiterator.rewind.html
MongoDB\Driver\Cursor::rewind — Rewind the cursor to the first result | PHP 8.3 8110
MongoDB\Driver\Cursor::rewind (mongodb >=1.9.0) MongoDB\Driver\Cursor::rewind — Rewind the cursor to the first result 説明 public function MongoDB\Driver\Cursor::rewind (): void If the cursor has advanced beyond its first position, it can n ... \Exception\LogicException if this method is called after the cursor has advanced beyond its first position. 参考 Iterator::rewind() - イテレータの最初の要素に巻き戻す 他のマニュアルの関連ページ DuckDB Python API ...
https://man.mtool.work/php/8.3/mongodb-driver-cursor.rewind.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT