Search
 
SCRIPT & CODE EXAMPLE
 

PHP

regex to check date format php

if (preg_match("/d{4}-d{2}-d{2}/", $date)) {
    echo 'true';
} else {
    echo 'false';
}
Comment

PREVIOUS NEXT
Code Example
Php :: failed to open stream permission denied laravel 
Php :: php int min 
Php :: increament single column laravel current value + 1 
Php :: logout in laravel 
Php :: yii1 set flash 
Php :: how to print array in laravel blade 
Php :: laravel session forget 
Php :: sql where count greater than 
Php :: laravel get request in blade 
Php :: php calculate percentage 
Php :: carbon set locale laravel 
Php :: how to add property to the request object 
Php :: php sleep half a second 
Php :: php pdo rowcount 
Php :: php echo and array to consle 
Php :: php retour à la ligne 
Php :: php ip 
Php :: the token has been blacklisted laravel jwt 
Php :: the requested url was not found on this server. laravel 
Php :: laravel carbon create date from string 
Php :: php cors 
Php :: laravel model quard 
Php :: laravel previous url 
Php :: link input button in php 
Php :: get one column in all associative array in collection laravel 
Php :: Cannot use object of type stdClass as array 
Php :: get unique values in laravel 
Php :: wordpress display post comment number 
Php :: install symfony in terminal 
Php :: php run python script 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =