|
Related Examples ( Source code ) » is_real Examples ( Source code ) » E-mail address validation class Code Examples / Notes » is_realjesdisciple @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 Languagedebug_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 |