လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> file_put_contents

file_put_contents

ဒေတာကိုဖိုင်တစ်ခုရေးပါ
အမည်:file_put_contents
အမျိုးအစား:ဖိုင်စနစ်
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:ဖိုင်တစ်ခုအတွက် string ကိုရေးသားခဲ့သည်။

နမူနာ

 <span class="token php language-php"><span class="token delimiter important"><? PHP</span>
<span class="token keyword">echo</span> <span class="token function">file_put_contents</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Test.txt"</span> <span class="token punctuation">,</span> <span class="token string double-quoted-string">"Hello World ။ စမ်းသပ်ခြင်း!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">></span></span>

ထုတ်လုပ်မှု -

 26
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • ပုံမှန်အကြွင်းမဲ့အာဏာလမ်းကြောင်းနာမကိုပြန်ပို့သည် realpath

    realpath

    ပုံမှန်အကြွင်းမဲ့အာဏ
  • ဖိုင်လမ်းကြောင်းအချက်အလက်ကိုပြန်ပို့သည် pathinfo

    pathinfo

    ဖိုင်လမ်းကြောင်းအချက
  • ဖိုင် mode ကိုပြောင်းလဲပါ chmod

    chmod

    ဖိုင်modeကိုပြောင်းလ
  • ဖိုင်တစ်ခုလုံးကို array ထဲသို့ဖတ်ပါ file

    file

    ဖိုင်တစ်ခုလုံးကိုarr
  • configuration stringsing ခွဲခြမ်းစိတ်ဖြာ parse_ini_string

    parse_ini_string

    configurationstrings
  • ဖိုင်ကိုကူးယူပါ copy

    copy

    ဖိုင်ကိုကူးယူပါ
  • လမ်းညွှန်အသစ်တစ်ခုဖန်တီးပါ mkdir

    mkdir

    လမ်းညွှန်အသစ်တစ်ခုဖန
  • ပေးထားသောဖိုင်အမည်လမ်းညွှန်သည်ရှိမရှိဆုံးဖြတ်ရန် is_dir

    is_dir

    ပေးထားသောဖိုင်အမည်လမ
လူကြိုက်များသော ဆောင်းပါးများ