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

filetype

파일 유형을 가져옵니다
이름:filetype
분류:파일 시스템
사용 언어:php
한 줄 설명:파일 유형을 반환합니다.

예 1

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

산출:

 파일

예 2

 <span class="token php language-php"><span class="token delimiter important"><? php</span>
<span class="token keyword">echo</span> <span class="token function">filetype</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"이미지"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

산출:

 멍청이
유사한 함수
  • 정규화 된 절대 경로 이름을 반환합니다 realpath

    realpath

    정규화된절대경로이름을반환합니다
  • 가벼운 상담 파일 잠금 flock

    flock

    가벼운상담파일잠금
  • 파일의 inode 수정 시간을 가져옵니다 filectime

    filectime

    파일의inode수정시간을가져옵니다
  • 파일 이름을 패턴으로 일치시킵니다 fnmatch

    fnmatch

    파일이름을패턴으로일치시킵니다
  • 줄을 CSV로 형식화하고 파일 포인터에 쓰기 fputcsv

    fputcsv

    줄을CSV로형식화하고파일포인터에쓰기
  • 파일 포인터에서 문자를 읽습니다 fgetc

    fgetc

    파일포인터에서문자를읽습니다
  • 상징적 연결을 설정하십시오 symlink

    symlink

    상징적연결을설정하십시오
  • is_writable 별칭 is_writeable

    is_writeable

    is_writable별칭