पीएचपी आरएमडीआईआर () फ़ंक्शन
❮ पीएचपी फाइल सिस्टम संदर्भउदाहरण
"छवियां" निर्देशिका निकालें:
<?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 |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | सफलता पर सत्य, असफलता पर असत्य |
---|---|
पीएचपी संस्करण: | 4.0+ |
❮ पीएचपी फाइल सिस्टम संदर्भ