日期:2014-05-17 浏览次数:20556 次
<?php
class Mytime{
public $time=date('Y-m-d H:i:s');
}
$mytime=new Mytime();
$mes=$mytime->time;
echo $mes;
Parse error: syntax error, unexpected '(', expecting ',' or ';' in C:\php\apache\htdocs\test5.php on line 5