+1 month php
$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));echo Date("Y-m-d", strtotime("2013-01-01 +1 Month -1 Day"));// 2013-01-31
echo Date("Y-m-d", strtotime("2013-01-31 +1 Month -3 Day")); // 2013-02-28
echo Date("Y-m-d", strtotime("2013-01-31 +2 Month")); // 2013-03-31
echo Date("Y-m-d", strtotime("2013-01-31 +3 Month -1 Day")); // 2013-04-30
echo Date("Y-m-d", strtotime("2013-12-31 -1 Month -1 Day")); // 2013-11-30
echo Date("Y-m-d", strtotime("2013-12-31 -2 Month")); // 2013-10-31
echo Date("Y-m-d", strtotime("2013-12-31 -3 Month")); // 2013-10-01
echo Date("Y-m-d", strtotime("2013-12-31 -3 Month -1 Day")); // 2013-09-30
Also in PHP:
- check if substring is present in string php
- convert string to timestamp php
- check if string contains substring php
- check word is in string php
- DateTime TO UNIx timestamp PHP
- array reverse sort php
- 17th date in php
- convert name from small letter to capital in php
- Warning: mysqli_error() expects exactly 1 parameter, 0
- file_get_contents php ssl
- check if some character exists in string php
- ddev laravel setup
- download laravel composer
- connect to ftp server php
- find in php
- ?? null laravel
- ation: 1071 Specified key was too long; max key length is 1000 bytes
- check string on string php
- Modularizing laravel 8.0
- check is char exist in stirng php
- add day to php date zero to add 10 below add zero
- add today name to website by php
- create folder in php
- combox with auto filter, auto search cakephp