- var_dump: documentation ( source)
<?php
$date = new DateTime('now');
$firstOfMonth = $date->modify('1st of month')->format(DATE_ISO8601);
$lastOfMonth = $date->modify('last day of month')->format(DATE_ISO8601);
var_dump(array($firstOfMonth, $lastOfMonth));