အဆိုပါ parse_ini_string () function ကို Ini configuration string ကိုခွဲခြမ်းစိတ်ဖြာရန်အသုံးပြုသည်။ function ကိုအောင်မြင်သောအခါ၎င်းသည် configuration ပစ္စည်းများပါ 0 င်သောအပေါင်းအသင်းဆိုင်ရာခင်းကျင်းမှုတစ်ခုဖြစ်လာပြီးခွဲခြမ်းစိတ်ဖြာမှုများမအောင်မြင်ပါကမှားယွင်းစွာပြန်လာလိမ့်မည်။
Parse_ini_String (file_path, process_sections)
အောင်မြင်မှုအတွက် Acciative array ကို parsed configuration information များပါ 0 င်သည်။ ပျက်ကွက်အပေါ်မှားယွင်းသောပြန်လာ။
[အမည်များ] One = Anne [urls] Host1 = "https://www.example1.com"
<?php
print_r(parse_ini_string("demo.ini"));
?> အခင်းအကျင်း
(
[One] => Anne
[host1] => https://www.example1.com
)ဤဆောင်းပါးသည် PPP တွင် PHP တွင်ပါ 0 င်သော PHP တွင်အသုံးပြုမှု PHP တွင်အသုံးပြုမှုကိုအသေးစိတ်ဖော်ပြထားသည်။ Parameter settings များ, ဤလုပ်ဆောင်ချက်ကိုကျွမ်းကျင်သူများသည် INI configuration files များကိုအလွယ်တကူခွဲခြမ်းစိတ်ဖြာခြင်းနှင့် PHP configuration စီမံခန့်ခွဲမှု၏ထိရောက်မှုကိုတိုးတက်စေရန်ကူညီနိုင်သည်။