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

file_get_contents

ဖိုင်တစ်ခုလုံးကို string တစ်ခုထဲသို့ဖတ်ပါ
အမည်:file_get_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_get_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 punctuation">;</span>
<span class="token delimiter important">></span></span>

输出:

 ဤသည်စမ်းသပ်မှုစာသားနှင့်အတူစမ်းသပ်ဖိုင်ဖြစ်ပါတယ်။
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • ဖိုင်တည်ရှိခြင်းရှိမရှိဆုံးဖြတ်ရန် is_readable

    is_readable

    ဖိုင်တည်ရှိခြင်းရှိမ
  • ဖိုင်များကိုဖတ်ပါ (binary files များတွင်လုံခြုံစွာအသုံးပြုသည်) fread

    fread

    ဖိုင်များကိုဖတ်ပါ(bi
  • စင်စစ်လုပ်ငန်းစဉ်ဖိုင်ညွှန်ပြ pclose

    pclose

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

    is_dir

    ပေးထားသောဖိုင်အမည်လမ
  • အစစ်အမှန်လမ်းကြောင်းကြားခံ၏အရွယ်အစားကိုရယူပါ realpath_cache_size

    realpath_cache_size

    အစစ်အမှန်လမ်းကြောင်း
  • ဖိုင် pointer အနေအထားကိုပြန်လှည့်ပါ rewind

    rewind

    ဖိုင်pointerအနေအထားက
  • ဖိုင်တစ်ခုလုံးကို string တစ်ခုထဲသို့ဖတ်ပါ file_get_contents

    file_get_contents

    ဖိုင်တစ်ခုလုံးကိုstr
  • ဖိုင်အမျိုးအစားကိုရယူပါ filetype

    filetype

    ဖိုင်အမျိုးအစားကိုရယ