i do have a lot of problem in follow code. first, I try to get number of days between two date and try to multiply with some integer. However, it doesn't multiplied. How can I get correct answer?
Help me guys.
function GetTotalDay($D1, $D2)
{
//$str = "19-04-2016";
$str = strtotime($D2) - (strtotime($D1));
echo (int)floor($str/3600/24);
}
$C1=GetTotalDay("01/01-2016", "03-01-2016");
$C2=12;
echo $C1 * $C2;