PHP file_exists()


개요

PHP file_exists()
  • 파일이 있는지 확인하는 PHP 함수
var_dump( file_exists("/etc/hosts") ); # bool(true)
var_dump( file_exists("/tmp/not-exist-file") ); # bool(false)

같이 보기

참고