Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php form detect if number has decimals

function is_decimal( $val )
{
    return is_numeric( $val ) && floor( $val ) != $val;
}
Comment

PREVIOUS NEXT
Code Example
Php :: get user symfony 
Php :: php median 
Php :: php artisan optimize command 
Php :: integer division in php 
Php :: php detect mobile 
Php :: laravel end date greater than start date validation 
Php :: php remove space before and after string 
Php :: wp override home url with php 
Php :: PHP dynamic property name 
Php :: php get end date of month 
Php :: check network connection php 
Php :: laravel remove public from url 
Php :: migration make 
Php :: ajax update method in php pdo 
Php :: remove get parameters from url php 
Php :: php check credit card expiration 
Php :: confirm password in codeigniter 
Php :: php get version 
Php :: php create Hmac sha256 
Php :: messed up pagination laravel 
Php :: php get domain from url 
Php :: drupal 9 enable PHP errors 
Php :: Laravel 8: seed users + Jetstream teams 
Php :: php number to word 
Php :: codeigniter count rows 
Php :: php force image refresh 
Php :: get cart item by cart item key woocommerce 
Php :: wp_query post by category id 
Php :: php pass variable by reference 
Php :: convert json object to array in php 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =