Search
 
SCRIPT & CODE EXAMPLE
 

PHP

+1 month php

$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));
Comment

php date today plus 1 month

$future_timestamp = strtotime("+1 month");
$data = date('Y-m-d', $future_timestamp);
Comment

php days in month

// For given month
echo cal_days_in_month(CAL_GREGORIAN, 1, 2021);
// For current month
echo date('t');
Comment

in date function + 1 month and - 1 day in php

<?php
$months = n; // Here n = …..-2,-1,0,1,2, …..(months to add or subtract)
$years = n;  // Here n = …..-2,-1,0,1,2, …..(years to add or subtract)
echo date('Y-m-28', mktime(0, 0, 0, date('m')+$months, 1, date('Y') + $years));
?>
Comment

PREVIOUS NEXT
Code Example
Php :: Get data from array (from an API) in Laravel 
Php :: deprecation notice on phpmyadmin localhost | phpmyadmin deprecation notice 
Php :: laravel load relationship 
Php :: what is Laravel Eloquent ORM. 
Php :: how to use php 
Php :: laravel db query log string replacements 
Php :: laravel eloquent multiple join 
Php :: laravel controller middleware example 
Php :: how check the time of operation in laravel 
Php :: date and time syntax 
Php :: is legged in wodpress 
Php :: php rce command 
Php :: connect php in sql server 
Php :: php define variables from array associative 
Php :: php random number 
Php :: in php how to check md5 password 
Php :: laravel event listener 
Php :: mixed content laravel form target 
Php :: public path() does not work on live server laravel. Problem with public path on live server 
Php :: laravel eloquent with query parameter 
Php :: validate file count with validate in laravel 
Php :: php simple sse 
Php :: check if config exist laravel 
Php :: php user ip from post request 
Php :: PHP code to read JSON string on server 
Php :: laravel make model controller and migration one time 
Php :: php is_assoc 
Php :: pagination always show 5 pages 
Php :: php insert in array 
Php :: create migration command in laravel 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =