- strtok: documentation ( source)
- strtotime: documentation ( source)
<?php
$str = "45-04-2013";
$s1 = strtok($str,"-");
$s2 = strtok("-");
$s3 = strtok("\n");
echo ("$s1 $s2 $s3");
$num = intval($s2) +4;
echo (" $num\n");
echo(strtotime('00:45'));
?>