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

file_put_contents

파일에 데이터를 작성하십시오
이름:file_put_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_put_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 string double-quoted-string">"Hello World. Testing!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

산출:

 26
유사한 함수
  • 실제 경로 버퍼의 크기를 얻으십시오 realpath_cache_size

    realpath_cache_size

    실제경로버퍼의크기를얻으십시오
  • 파일 삭제 unlink

    unlink

    파일삭제
  • 파일 포인터에서 문자를 읽습니다 fgetc

    fgetc

    파일포인터에서문자를읽습니다
  • 파일의 형식 입력 fscanf

    fscanf

    파일의형식입력
  • 파일에 쓰기 (이진 파일에 안전하게 사용) fwrite

    fwrite

    파일에쓰기(이진파일에안전하게사용)
  • 구성 파일을 구문 분석하십시오 parse_ini_file

    parse_ini_file

    구성파일을구문분석하십시오
  • 파일 모드를 변경하십시오 chmod

    chmod

    파일모드를변경하십시오
  • 정규화 된 절대 경로 이름을 반환합니다 realpath

    realpath

    정규화된절대경로이름을반환합니다
인기 기사