How to add days to $Date in PHP when click on button
<?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:
- create new laravel project composer
- char to uppercase php
- array push in php
- contains string oho
- css adding corner
- check if home page wordpress
- db:seed not seeding to db laravel 8
- $user = User::find($request->userid);
- Install or enable PHP's dom extension.
- array exists key php
- Delete Query with Where Condition in Codeigniter
- drupal 8 enable twig debug
- CONTAIN PHP
- calculate total time from start and end datetime in php
- all my php codes redirects to one site
- check array key e\
- clear memcache laravel'
- SQLSTATE[42000]: Syntax error or access violation: 1071 laravel
- Upload image laravel 6
- check if number doesn't divide exactly by 3 php
- catch php exception
- Write a PHP script that generates a 6 digit password from the given string without using random function?
- Create image data URIs (base64) using PHP Raw
- create a laravel project php 8