- var_dump: documentation ( source)
- time: documentation ( source)
- date: documentation ( source)
<?php
$first = clone $last = new \DateTime(date('d-m-Y',time())); //this being todays date 21-03-2017
$first->modify('first day of this month');
var_dump($first);
$last->modify('last day of this month');
var_dump($last);