20050214

PHP Reminder: type casting and copy substring

I keep forgeting some functions...

$n = (int) substr($s, strpos($s,"-")+1, strlen($s));

strtotime("-1 day", time());
strtotime("+1 day", time());
strtotime("next monday", time());

gmdate("Ymd", time())

0 Comments:

Post a Comment

<< Home