PHP rmdir() 함수
❮ PHP 파일 시스템 참조예시
"이미지" 디렉토리 제거:
<?php
$path = "images";
if(!rmdir($path)) {
echo ("Could not remove $path");
}
?>
정의 및 사용
rmdir() 함수는 빈 디렉토리를 제거합니다.
통사론
rmdir(dir, context)
매개변수 값
Parameter | Description |
---|---|
dir | Required. Specifies the path to the directory to be removed |
context | Optional. Specifies the context of the file handle. Context is a set of options that can modify the behavior of a stream |
기술적 세부 사항
반환 값: | 성공하면 TRUE, 실패하면 FALSE |
---|---|
PHP 버전: | 4.0+ |
❮ PHP 파일 시스템 참조