<?php echo $date = date('Y-m-d', strtotime('+1 month', strtotime('2018-01-31'))); // your code goes here
Standard input is empty
2018-03-03
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!