<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                1、feof():判斷指針是否已經達到了文件末尾,如果到了末尾,則返回true,否則返回false。 $file = fopen('aa.txt','r'); $arry = array(); echo '<pre>'; while(!feof($file)){ array_push($arry,fgets($file)); } print_r($arry); 2、ftell():指針當前位置。 $file = fopen('aa.txt','r'); echo ftell($file);//0 3、fseek(file,offset,whence):移動指針到某個位置。 file必選,offset必選,whence可選。 whence的可選值如下: (1)SEEK_SET - 設定位置等于offset 字節。默認。 (2)SEEK_CUR - 設定位置為當前位置加上 offset。 (3)SEEK_END - 設定位置為文件末尾加上 offset (要移動到文件尾之前的位置,offset 必須是一個負值)。 $file = fopen('aa.txt','r').; fseek($file,30,SEEK_SET); echo ftell($file).'<br/>';//30 fseek($file,10,SEEK_CUR); echo ftell($file).'<br/>';//40 fseek($file,-2,SEEK_END); echo ftell($file);//171 4、rewind():將指針重新恢復到初始位置。 在第三點的基礎上加上以下代碼: rewind($file); echo ftell($file);//0 5、fpassthru():將當前指針后面的內容全部輸出 fpassthru($file); fclose($file);
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看