Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Variable Handling Functions : is_real

is_real

Alias of is_float (PHP 4, PHP 5)


Related Examples ( Source code ) » is_real


Code Examples / Notes » is_real

jesdisciple @t gmail -dot- com

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).

alan hogan dot com slash contact

@jesdisciple: Not so.
<?php
is_real(2.0) //evaluates to TRUE
?>
For proof, see this:
http://demo.pixelsandpages.com/is_float_int_real.php


Change Language


Follow Navioo On Twitter
debug_zval_dump
doubleval
empty
floatval
get_defined_vars
get_resource_type
gettype
import_request_variables
intval
is_array
is_binary
is_bool
is_buffer
is_callable
is_double
is_float
is_int
is_integer
is_long
is_null
is_numeric
is_object
is_real
is_resource
is_scalar
is_string
is_unicode
isset
print_r
serialize
settype
strval
unserialize
unset
var_dump
var_export
eXTReMe Tracker