PHP rmdir() လုပ်ဆောင်ချက်
❮ PHP ဖိုင်စနစ် အကိုးအကားဥပမာ
"ပုံများ" လမ်းညွှန်ကို ဖယ်ရှားပါ-
<?php
$path = "images";
if(!rmdir($path)) {
echo ("Could not remove $path");
}
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
rmdir() function သည် ဗလာ directory ကိုဖယ်ရှားသည်။
အထားအသို
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 ဖိုင်စနစ် အကိုးအကား