- assert: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
assert(date('d',strtotime('last day of april')) == "30");
assert(date('d',strtotime('last Day of april')) == "30");
// will raise warning
assert(date('d',strtotime('Last Day of april')) == "30");