add date days 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'));
?> // add 1 day to the date above
$n = date('Y-m-d', strtotime( $d . " +1 days"));
// add 1 month to the date above
$n = date('Y-m-d', strtotime( $d . " +1 month"));
// add 1 year to the date above
$n = date('Y-m-d', strtotime( $d . " +1 year"));
// subtract 1 day to the date above
$n = date('Y-m-d', strtotime( $d . " -1 days"));
// subtract 1 month to the date above
$n = date('Y-m-d', strtotime( $d . " -1 month"));
// subtract 1 year to the date above
$n = date('Y-m-d', strtotime( $d . " -1 year"));
Also in PHP:
- centos excecutable php
- count duplicate strings array php
- created_at date get in y-m-d H:i:s php
- Notice: Array to string conversion php
- PHP make an image from a random alphanumerric string
- check on off in php code
- echo current time user php
- Call to undefined function App\Models\str_slug()
- debug php errors
- In Connection.php line 664:SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema
- add days to date php
- downloading php latest version for ubuntu 20.04 using terminal
- composer require php '^5.4'
- check if array__key exists
- 3 elements in do while loop php
- clean laravel
- arr::plunk laravel
- check if letter in string php
- catch(Exception $e
- detect find char in string php position
- ajout d'heure à une date php
- ** (process:82385): CRITICAL **: 22:54:20.169: string_replace: assertion 'self != NULL' failed
- M-d h:i:a
- acf group