我有这个代码:
private static $dates = array(
'start' => mktime( 0, 0, 0, 7, 30, 2009), // Start date
'end' => mktime( 0, 0, 0, 8, 2, 2009), // End date
'close' => mktime(23, 59, 59, 7, 20, 2009), // Date when registration closes
'early' => mktime( 0, 0, 0, 3, 19, 2009), // Date when early bird discount ends
);
这给了我以下错误:
解析错误:语法错误,第 19 行 /home/user/Sites/site/registration/inc/registration.class.inc 中的意外 '(', expecting ')'
所以,我想我做错了什么......但如果不是那样,我该怎么做呢?如果我用常规字符串更改 mktime 内容,它就可以工作。所以我知道我可以像那样做..
有人有一些指示吗?