현재 위치: > 함수 카테고리 모음> file

file

전체 파일을 배열로 읽으십시오
이름:file
분류:파일 시스템
사용 언어:php
한 줄 설명:파일을 배열로 읽으십시오.

实例

<span class="token php language-php"><span class="token delimiter important"><? php</span>
<span class="token function">print_r</span> <span class="token punctuation">(</span> <span class="token function">file</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

输出 :

 정렬
(
[0] => Hello World. 테스트 테스트!
[1] => 또 다른 날, 다른 줄.
[2] => 배열 이이 라인을 선택하면
[3] => 그러면 픽업 라인입니까?
))
유사한 함수
  • 파일 포인터에서 줄을 읽고 CSV 필드를 구문 분석합니다. fgetcsv

    fgetcsv

    파일포인터에서줄을읽고CSV필드를구문분
  • 업로드 된 파일을 새 위치로 이동하십시오 move_uploaded_file

    move_uploaded_file

    업로드된파일을새위치로이동하십시오
  • 전체 파일을 문자열로 읽으십시오 file_get_contents

    file_get_contents

    전체파일을문자열로읽으십시오
  • 파일 상태 캐시를 지우십시오 clearstatcache

    clearstatcache

    파일상태캐시를지우십시오
  • 파일을 복사하십시오 copy

    copy

    파일을복사하십시오
  • disk_free_space의 별칭 diskfreespace

    diskfreespace

    disk_free_space의별칭
  • 파일 크기를 얻으십시오 filesize

    filesize

    파일크기를얻으십시오
  • 얻은 파일 그룹 filegroup

    filegroup

    얻은파일그룹