Search
 
SCRIPT & CODE EXAMPLE
 

PHP

number only in php

## CHECK IF INPUT IS NUMBER ONLY
$number = "12345";
is_numeric($number); ## RETURNS TRUE IF NUMBER ONLY, ELSE FALSE
Comment

php validate only numbers

is_numeric($value); //returns true || false
Comment

validate number should by 12 digit in php

/^$|^[0-9]{12}$/
Comment

PREVIOUS NEXT
Code Example
Php :: how get year of field database in laravel collection 
Php :: php iterate through array 
Php :: PHP CSV File Export Using fputcsv() 
Php :: how to add new column in laravel migration 
Php :: counting time execution duration in time laravel 
Php :: storePublicly laravel with name 
Php :: php repeat string 
Php :: laravel if file is image 
Php :: laravel tinker add user 
Php :: check string php 
Php :: php array to csv 
Php :: laravel migration add date of birth column 
Php :: password hashing in laravel 
Php :: laravel check pagination in blade 
Php :: laravel bootstrap nav active 
Php :: php iterate array keys 
Php :: wordpress wp_enqueue_script footer 
Php :: laravel get file contents from storage 
Php :: php prime numbers 
Php :: Laravel groupby date of created_at 
Php :: php post 
Php :: where laravel function 
Php :: symfony get query param 
Php :: fill zero on php 
Php :: php connect to data base 
Php :: install phpUnit in php by composer 
Php :: php all date formats 
Php :: php utf8_decode 
Php :: php select from database into array 
Php :: PHP executable not found. Install PHP and add it to your PATH or set the php.executablePath setting in linux 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =