英[?ri:?wa?nd]? ?美[ri?wa?nd]??
v.重繞;倒回(影片、錄音帶等)
n.重繞;倒帶器
第三人稱單數(shù): rewinds 複數(shù): rewinds 現(xiàn)在分詞: rewinding 過去式: rewound 過去分詞: rewound
php rewind()函數(shù) 語法
作用:將檔案指標(biāo)的位置倒回檔案的開頭。
語法:rewind(file)
#參數(shù):
參數(shù) | 說明 |
file? ?? | 必要。規(guī)定已開啟的文件。? ?? |
說明:若成功,則回傳 true。若失敗,則傳回 false。
php rewind()函數(shù) 範(fàn)例
<?php $file = fopen("./test.txt","r"); //改變文件指針的位置 fseek($file,"13"); //把文件指針設(shè)定為 0 rewind($file); //輸出指針位置 echo ftell($file); ?>