<?php
$checknew = explode("-", "2015-11-20");
$monthnow = $checknew[1];
$daynow = $checknew[0];
$yearnow = $checknew[2];
$rangenow = mktime(0, 0, 0, $monthnow, $daynow, $yearnow);
$datediff = date("Y-m-d",$rangenow) - date("Y-m-d");
echo $datediff
- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/YSjlM on line 9
Process exited with code 255.
preferences:
170.57 ms | 1395 KiB | 22 Q