- ceil: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$d1=strtotime( "today");
$d3=strtotime("$d1+2 days");
echo date("l",$d3);
$d2=ceil(($d1-strtotime("Today"))/60/60/24/7);
echo "There are " . $d2 ." weeks until 4th of July.";