is_real

(PHP 4, PHP 5, PHP 7, PHP 8)

is_real别名 is_float()

说明

此函数是该函数的别名: is_float().

警告

该别名已在 PHP 7.4.0 中 废弃,并且自 PHP 8.0.0 起已被移除

add a note add a note

User Contributed Notes 1 note

up
5
charlescbe16 at gmail dot com
14 years ago
is_float — Finds whether a variable is a floatDescriptionbool is_float ( mixed var )

Finds whether the given variable is a float.

example:
<?php
$float
=50.97;
if(
is_float($float))
{
    echo
$float."is a float";
}
else
{
    echo
$float. "is not a float";
}
?>

output:
50.97 is a float
To Top