add 5 days to current date in php
<?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'));
?>$date = "Mar 03, 2011";
$date = strtotime($date);
$date = strtotime("+7 day", $date);
echo date('M d, Y', $date);
Also in PHP:
- create a new laravel 8 project
- create laravel 5.8 project using composer
- Builder::unique() laravel
- drupal 8 entity_view
- check if substring in php
- Laravel query where and
- errpr reporting in php
- 500 error coming on laravel site
- date php français
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes windows
- add days with dates php
- file_get_contents() ssl operation failed
- extract contact page url php
- check if string exists in string php
- created at time to number php
- execcommand insert video
- curl php example
- check if string not contains php
- check if value contain strings php
- base64 to image
- exceptional handling in php
- date to timestamp in php
- check if substring in string php
- display php errorrs