Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check date is in the last 24 hours?

if (time() - strtotime("2010-07-04 10:19:26") > 60*60*24) {
   print "Older than 24h";
} else {
   print "Newer than 24h";
}
Comment

PREVIOUS NEXT
Code Example
Php :: xss=removed 
Php :: Redirect User To Different Page 
Php :: dump all variable in view codeigniter 
Php :: wordpress query a post by id 
Php :: phpmailer 
Php :: select statement of table in phpmyadmin 
Php :: phpstorm using extract to create variales 
Php :: require_once different on server 
Php :: laravel override eloquent all function 
Php :: php function return multiple values 
Php :: mssql php 
Php :: use htaccess to redirect in cpanel laravel 
Php :: php heredoc function 
Php :: laravel where condition with if 
Php :: bind param php 
Php :: check count in laravel 
Php :: php sum array values by key 
Php :: laravel guard 
Php :: php 2 decimal even if not exists 
Php :: php header author 
Php :: curl failed laravel centos 
Php :: value() in laravel 
Php :: Laravel 9 Multiple File Upload Tutorial 
Php :: mysql gone away error in php 
Php :: rand in codeigniter 
Php :: sage theme 
Php :: multiline string php 
Php :: enable phpmailer cpanel 
Php :: indirect modification of overloaded property has no effect laravel 
Php :: Warning: password_verify() expects parameter 2 to be string, array given in 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =