<?php
//$d = new DateTime( '2010-01-31' );
//$d->modify( 'first day of next month' );
$day=toString( 'last day of +1 month', now());
//echo $day->toString('yyyy-MM-dd');
echo $day;
Fatal error: Uncaught Error: Call to undefined function toString() in /in/3YhRQ:4
Stack trace:
#0 {main}
thrown in /in/3YhRQ on line 4
Process exited with code 255.