Answers for "one month in int php"

PHP
4

+1 month php

$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));
Posted by: Guest on August-07-2020
1

php month single digit

echo date("n", $date); //echo month without leading 0, ie: 1,2,3,4,5,6,7,8,9,10,11,12
Posted by: Guest on July-30-2021

Browse Popular Code Answers by Language