Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php check if input is date

function isRealDate($date) { 
    if (false === strtotime($date)) { 
        return false;
    } 
    list($year, $month, $day) = explode('-', $date); 
    return checkdate($month, $day, $year);
}
Comment

PREVIOUS NEXT
Code Example
Php :: var_dump beautifier 
Php :: php date + 1 year 
Php :: convert space to 20 php 
Php :: php change sting to caps 
Php :: php get ip address of visitor 
Php :: custom js css using wordpress hook 
Php :: display errors in codeigniter 
Php :: attach multiple files in laravel mailable 
Php :: double in migration laravel 
Php :: check session in blade laravel 
Php :: asia time zone in php 
Php :: how get all files name in one folder in laravel 
Php :: php get location of user 
Php :: wordpress disable errors 
Php :: laravel collection shuffle 
Php :: php discord webhook 
Php :: print date in php 
Php :: check exist string in string php 
Php :: laravel if request has 
Php :: logout in laravel 8 
Php :: increase xampp phpmyadmin import limit 
Php :: print query in laravel 
Php :: how to get array dont similer elements in php 
Php :: php get class name of this 
Php :: php artisan make migrate different folder 
Php :: laravel print exception message 
Php :: check if value exists in object php 
Php :: if post id is wordpress php 
Php :: php append file 
Php :: Yii2 Stripe Webhook testing: "[ERROR] Failed to Post" 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =