현재 위치: > 함수 카테고리 모음> 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] => 그러면 픽업 라인입니까?
))
유사한 함수
  • 데이터 (메타 데이터는 아님)를 파일과 동기화합니다 fdatasync

    fdatasync

    데이터(메타데이터는아님)를파일과동기화
  • 파일 유형을 가져옵니다 filetype

    filetype

    파일유형을가져옵니다
  • 기호 링크의 소유자를 수정하십시오 lchown

    lchown

    기호링크의소유자를수정하십시오
  • 파일 시스템 또는 디스크 파티션의 총 크기를 반환합니다. disk_total_space

    disk_total_space

    파일시스템또는디스크파티션의총크기를반환
  • 파일 포인터에서 문자를 읽습니다 fgetc

    fgetc

    파일포인터에서문자를읽습니다
  • 버퍼링 된 컨텐츠를 파일로 내 보냅니다 fflush

    fflush

    버퍼링된컨텐츠를파일로내보냅니다
  • 경로에서 파일 이름 부분을 반환합니다 basename

    basename

    경로에서파일이름부분을반환합니다
  • 파일이 http post를 통해 업로드되어 있는지 확인하십시오 is_uploaded_file

    is_uploaded_file

    파일이httppost를통해업로드되어있