add day to time 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:
- array_merge_recursive in php
- claer database connection cache laravel
- create laravel 7 project instead of 8
- $time=date("H:i");
- date manual php
- d-m-Y php format with minutes
- $data=['user_id'] = Auth::user()->id;
- array no of duplictae items php
- error reporting php all
- artisan migrate certain file
- autoloading classes
- converting string to uppper case in PHP
- create random unique password with php
- d/m/Y g:i a format to datetime object js
- Allowed memory size of 1610612736 bytes exhausted laravel 8
- clave generator php
- How can I install php7.4 on Ubuntu 18.04?
- Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
- all cap in php
- catch an error php
- char to uppercase php
- check if array key exists
- < Php echo date("m") . " "; ?> what is the output of this script?
- artisan cache clear