我有以下代码:
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中出现意外的'(',期待')'
所以,我想我做错了什么...但是如果不那样做怎么办?如果我用常规字符串更改mktime内容,则可以正常工作。所以,我知道我能做到这一点的那种像..
有人有指针吗?