php - date_sub function unrecognized in EasyPHP -
hello have writte php script uses date_sub function of php substract number date (eg.-1 date date). had , running using xampp(my server) in easyphp shows error "unrecognised command" date_sub.
anyone knows error? used xaamp 3.2.1 php 5.4.22
i not sure version of php on easyphp(not server) think lastest available. (i can check it)
date_sub should avaiable php 5.3.0 apear not using 5.4.22 think.
if cant update can same functionality using strtotime
$date = time(); $date = strtotime("-8 days",$date); $date = strtotime("-8 hours",$date);
etc.
Comments
Post a Comment