- var_dump: documentation ( source)
- time: documentation ( source)
- preg_match: documentation ( source)
- floor: documentation ( source)
- max: documentation ( source)
- strtotime: documentation ( source)
<?php
echo max(floor((strtotime('2017-07-07') - time()) / 86400), 1);
var_dump(preg_match('#([0-9]+)\-([0-9]+)#', '3-5 dnů', $maa));