add on day to date php
<?php
// PHP program to add days to $Date
// Declare a date
$date = "2019-05-10";
// Add days to date and display it
echo date('Y-m-d', strtotime($date. ' + 10 days'));
?> $date = new DateTime('2020-11-24');
$date->add(new DateInterval("P9D"));
echo $date->format('Y-m-d');
Also in PHP:
- check same and differnt value in array in php
- compare key and one array
- Syntax error or access violation: 1071 Specified key was t oo long; max key length is 1000 bytes
- laravel::all()->distinct()->get();
- drop down list display only seleted item only
- add class to body class wordpress
- alphabet and numeric random php
- array ket exists
- extract the domain name from the current url in php
- error_reporting e_all
- create new record via model in laravel
- check is char exist in stirng php
- Class 'App\Http\Controllers\View' not found
- current date in phph
- date() php - 1day
- display picture in pdf generated with laravel
- adding header function to href php
- creade seeder in laravel
- check substring php
- Carbon\Carbon::today()->format('Y-m-d') in blade
- current date format in php
- This behaviour is (currently) not supported by Doctrine 2
- Laravel 8 KET TO LONG ERROR
- array shift php