Validates if an integer has a decimal.
isDecimal(mixed $num, array &$matches): bool
num (mixed) : The number to validate.
matches (array) : If matches is populated, then it returns an array that is filled with the results of the match. ^(optional)^
(bool) : Returns true on success and false on failure.
true
false
If $matches is provided then an array is returned with the following:
$matches
0
1
$fx->isDecimal(1.2) = true $fx->isDecimal(3) = false
Home | CoreyFX | Validation
There was an error while loading. Please reload this page.