PHP is_int() လုပ်ဆောင်ချက်
❮ PHP Variable Handling ရည်ညွှန်းချက်
ဥပမာ
ကိန်းရှင်သည် အမျိုးအစား ကိန်းပြည့် ဟုတ်မဟုတ် စစ်ဆေးပါ-
<?php
$a = 32;
echo "a is " . is_int($a) . "<br>";
$b = 0;
echo "b is "
. is_int($b) . "<br>";
$c = 32.5;
echo "c is " . is_int($c) . "<br>";
$d = "32";
echo "d is " . is_int($d) . "<br>";
$e = true;
echo "e is " . is_int($e) . "<br>";
$f = "null";
echo "f is " .
is_int($f) . "<br>";
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
is_int() function သည် variable သည် type integer ဟုတ်မဟုတ် စစ်ဆေးသည်။
variable သည် type integer ဖြစ်ပါက ဤ function သည် true (1) ကို return ပြန်သည် ။
အထားအသို
is_int(variable);
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
variable | Required. Specifies the variable to check |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ကိန်းရှင် သည် ကိန်းပြည့် ဖြစ်လျှင် TRUE ၊ မဟုတ်လျှင် FALSE ဖြစ်သည်။ |
---|---|
ပြန်ပို့အမျိုးအစား- | ဘူလီယံ |
PHP ဗားရှင်း- | 4.0+ |
❮ PHP Variable Handling ရည်ညွှန်းချက်