1
任何人都可以向我解釋爲什麼以下是導致語法錯誤(意外'=')?PHP語法錯誤
protected function processDates()
{
foreach($this->dates as $name => $unitprefix)
{
$this->$unitprefix.'year' = '';
$this->$unitprefix.'month' = '';
$this->$unitprefix.'day' = '';
}
}
顯然我不會把這些值留空,但在繼續之前,我需要修復當前的問題。
任何意見讚賞。
謝謝。
感謝您的幫助。 – Dan 2010-03-09 16:38:42