الدالة 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 |
تفاصيل تقنية
قيمة الإرجاع: | صواب في النجاح ، خطأ في الفشل |
---|---|
إصدار PHP: | 4.0+ |
❮ مرجع نظام ملفات PHP