$htmlvar=<<<HTML clean html code here <html><body><head></head><h1>Hello world</h1></body></html> HTML; echo $htmlvar;
Daily Archives: September 19, 2010
php strtotime
echo ‘Today day: ‘. date(‘Ymd’) .”\n”; echo date(‘Ymd’, strtotime(‘-1 day’)); echo strtotime(“now”), “\n”; echo strtotime(“10 September 2000”), “\n”; echo strtotime(“+1 day”), “\n”; echo strtotime(“+1 week”), “\n”; echo strtotime(“+1 week 2 days 4 hours 2 seconds”), “\n”; echo strtotime(“next Thursday”), “\n”; echo strtotime(“last Monday”), “\n”; echo ‘Today day: ‘. date(‘Ymd’) .”\n”; $dateprev=date(‘Ymd’, strtotime($date. ‘-1 day’));