is_resource> <is_object
Last updated: Fri, 13 Nov 2009

is_real

(PHP 4, PHP 5)

is_realSinônimo de is_float()

Descrição

Esta função é um apelido para: is_float().



is_resource> <is_object
Last updated: Fri, 13 Nov 2009
 
User Contributed Notes
is_real
alan hogan dot com slash contact
08-Nov-2007 01:39
@jesdisciple: Not so.

<?php
is_real
(2.0) //evaluates to TRUE
?>

For proof, see this:
http://demo.pixelsandpages.com/is_float_int_real.php
alan hogan dot com slash contact
08-Nov-2007 01:38
@jesdisciple: Not so.

<?php
is_real
(2.0) //evaluates to TRUE
?>

For proof, see this:
http://demo.pixelsandpages.com/is_float_int_real.php
jesdisciple @t gmail -dot- com
07-Nov-2007 01:09
I object to this as an alias for is_float(), because 2.1 is no more "real" as a number than 2.0 (which is automatically cast to int, and therefore is_real(2.0) === false).

is_resource> <is_object
Last updated: Fri, 13 Nov 2009