Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check mobile number length in php

function validate_mobile($mobile)
{
    return preg_match('/^[6-9]d{9}$/', $mobile);
}

if(validate_mobile(6428232817)){
    echo "Yes";
}else{
    echo "No";
}
Comment

PREVIOUS NEXT
Code Example
Php :: access model in config laravel 
Php :: log magenot 1 
Php :: laravel OrderBy on Eloquent whereHas relationship 
Php :: action php self 
Php :: Before Action methoond in Yii 1 controller 
Php :: get product price by id woocommerce snippet 
Php :: laravel validation two columns unique 
Php :: date in russian php 
Php :: string to array php 
Php :: laravel allow all fillable 
Php :: xss=removed 
Php :: custom blade if directive 
Php :: laravel get unique data by column and order by 
Php :: laravel create model for existing table 
Php :: php file_put_contents 
Php :: php object example 
Php :: Laravel unique with Validation rule 
Php :: livewire model array 
Php :: how to enable auto refresh on save laravel 
Php :: php format phone number with dashes function 
Php :: PHP exif_read_data() 
Php :: get current month laravel 
Php :: how to set 1 year date without saturday in while loop php 
Php :: laravel get url parameters in controller 
Php :: codeigniter check view file exists 
Php :: if else in php 
Php :: meta_value wordpress 
Php :: php loop in js 
Php :: Publish Spatie Laravel Permission 
Php :: how to get private images in s3 laravel 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =