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

file_get_contents

전체 파일을 문자열로 읽으십시오
이름:file_get_contents
분류:파일 시스템
사용 언어:php
한 줄 설명:파일을 문자열로 읽습니다.

实例

<span class="token php language-php"><span class="token delimiter important"><? php</span>
<span class="token keyword">echo</span> <span class="token function">file_get_contents</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 delimiter important">?></span></span>

输出 :

 테스트 텍스트가있는 테스트 파일입니다.
유사한 함수
  • 파일 소유자를 변경하십시오 chown

    chown

    파일소유자를변경하십시오
  • 열린 파일 포인터를 통해 파일 정보를 얻습니다 fstat

    fstat

    열린파일포인터를통해파일정보를얻습니다
  • 파일이나 디렉토리가 있는지 확인하십시오 file_exists

    file_exists

    파일이나디렉토리가있는지확인하십시오
  • 정규화 된 절대 경로 이름을 반환합니다 realpath

    realpath

    정규화된절대경로이름을반환합니다
  • 파일이 존재하고 읽을 수 있는지 확인하십시오 is_readable

    is_readable

    파일이존재하고읽을수있는지확인하십시오
  • 가벼운 상담 파일 잠금 flock

    flock

    가벼운상담파일잠금
  • RealPath 캐시 항목을 얻으십시오 realpath_cache_get

    realpath_cache_get

    RealPath캐시항목을얻으십시오
  • 파일 또는 디렉토리의 이름을 바꿉니다 rename

    rename

    파일또는디렉토리의이름을바꿉니다