Answers for "count days from date to now php"

PHP
0

how to get n days from today in php

//Simple method how to get the date of tomorrow, yesterday, etc. is to use: 
$tomorrow = date( "Ymd", strtotime( "+1 days" ) ); 
$dayaftertomorrow = date( "Ymd", strtotime( "+2 days" ) ); 
$yesterday = date( "Ymd", strtotime( "-1 days" ) );
Posted by: Guest on June-03-2021
1

php get total amount of days in month

$DaysInCurrentMonth = date('t');
Posted by: Guest on August-05-2020

Browse Popular Code Answers by Language