How does php generate dynamic tables with dynamic headers and data ??? For example, if I query by time, the header will be July 1-7 | 7.1 | 7.2 from January 1, 7.3 to March 3. how can I do this ??, & Lt ;? Php $ stime = strtotime ('1970-7-1 '); $ otime = strtotime (how does php generate dynamic tables with dynamic headers and data ???
For example, if I query by time, the header will be July 1-7 | 7.1 | 7.2 from January 1, 7.3 to March 3. how can I do this ??
------ Solution --------------------
$ Stime = strtotime ('2017-7-1 ');
$ Otime = strtotime ('2017-7-3 ');
$ I = 0;
$ Arr = array ();
For ($ I = $ stime; $ stime <= $ otime; $ stime = $ stime + 86400)
{
$ Arr [] = date ('M. D', $ stime );
}
$ New_arr = implode ($ arr ,'
------ Solution --------------------
');
Print_r ($ new_arr );
?>
07.01
------ Solution --------------------
07.02
------ Solution --------------------
07.03
Phase 52 Lee Burran?