DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php form detect if number has decimals
function is_decimal( $val ) { return is_numeric( $val ) && floor( $val ) != $val; }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#form
#detect
#number
#decimals
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit