PHP rmdir() İşlev
❮ PHP Dosya Sistemi ReferansıÖrnek
"Görüntüler" dizinini kaldırın:
<?php
$path = "images";
if(!rmdir($path)) {
echo ("Could not remove $path");
}
?>
Tanım ve Kullanım
rmdir() işlevi boş bir dizini kaldırır.
Sözdizimi
rmdir(dir, context)
Parametre Değerleri
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 |
Teknik detaylar
Geri dönüş değeri: | Başarıda DOĞRU, başarısızlıkta YANLIŞ |
---|---|
PHP Sürümü: | 4.0+ |
❮ PHP Dosya Sistemi Referansı