PHP is_double() İşlevi
❮ PHP Değişken İşleme Referansı
Örnek
Bir değişkenin float türünde olup olmadığını kontrol edin:
<?php
$a = 32;
echo "a is " . is_double($a) . "<br>";
$b = 0;
echo "b is
" . is_double($b) . "<br>";
$c = 32.5;
echo "c is " . is_double($c) .
"<br>";
$d = "32";
echo "d is " . is_double($d) . "<br>";
$e =
true;
echo "e is " . is_double($e) . "<br>";
$f = "null";
echo "f
is " . is_double($f) . "<br>";
$g = 1.e3;
echo "g is " . is_double($g)
. "<br>";
?>
Tanım ve Kullanım
is_double() işlevi, bir değişkenin float türünde olup olmadığını kontrol eder.
Bu işlev, is_float() öğesinin diğer adıdır .
Sözdizimi
is_double(variable);
Parametre Değerleri
Parameter | Description |
---|---|
variable | Required. Specifies the variable to check |
Teknik detaylar
Geri dönüş değeri: | Değişken bir kayan nokta ise DOĞRU , aksi takdirde YANLIŞ |
---|---|
İade Türü: | Boole |
PHP Sürümü: | 4.0+ |
❮ PHP Değişken İşleme Referansı