aadd day in 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'));
?> <?php
// adding extra days to date
// Steps:
// 1) using carbon
// 2) using strtotime
//Step 1
$date = date('Y M d h:i:s') // 2020 09 22 22:09:26 UTC
$new_date = Carbon::parse($date->addDays(1); // adds extra day
// Step 2
$date = date('Y M d h:i:s') // 2020 09 22 22:09:26 UTC
echo $new_date = date('Y M d h:i:s', strtotime($date. '+1 day'));
?>
Also in PHP:
- cache delete or forget in laravel
- Message: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". You are running 7.2.34-18+ubuntu18.04.1+deb.sury.org+1.
- dateFormat php
- client_ip() function php
- check if key exists array
- check if index of array exists php
- check the php version in ubuntu
- check if string has this word php
- check if key exists in associative array php
- date reformat php
- easy admin bunfle symfony modify login page
- What does PEAR stands for?
- Undefined offset: 0 at laravel\framework\src\Illuminate\Routing\Router.php
- error enable php
- Allowed memory size of 134217728 bytes exhausted (tried to allocate 157 bytes) in C:\wamp64\scripts\refresh.php on line 2263
- add hour minute in datetime in php
- ERROR: Could not enable dependency mpm_prefork for php7.4, aborting
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, string given in
- ternary if in blade
- array_add laravel 7
- count characters laravel
- check for str in str php
- array ket exists
- ( ! ) Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /Users/chakma/demo/vokuro/app/controllers/UsersController.php on line 375