PHP mysqli get_connection_stats() လုပ်ဆောင်ချက်
ဥပမာ
ကလိုင်းယင့်ချိတ်ဆက်မှုဆိုင်ရာ ကိန်းဂဏာန်းများကို ပြန်ပေးသည်-
<?php
$con = mysqli_connect("localhost","my_user","my_password","my_db");
print_r(mysqli_get_connection_stats($con));
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
mysqli_get_connection_stats() လုပ်ဆောင်ချက်သည် ကလိုင်းယင့်ချိတ်ဆက်မှုဆိုင်ရာ စာရင်းအင်းများကို ပြန်ပေးသည်။
အထားအသို
အရာဝတ္ထုကို ဦးတည်သည့်ပုံစံ-
$mysqli ->
get_connection_stats()
လုပ်ထုံးလုပ်နည်းပုံစံ-
mysqli_get_connection_stats(connection)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
connection | Required. Specifies the MySQL connection to use |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | အောင်မြင်မှုတွင် ချိတ်ဆက်မှု ကိန်းဂဏာန်းများပါရှိသော array တစ်ခုကို ပြန်ပေးသည်။ ရှုံးနိမ့်မှုအပေါ် မှားသည်။ |
---|---|
PHP ဗားရှင်း- | 5.3+ |
❮ PHP MySQLi အကိုးအကား