作者wanzoo (Zoo)
看板PHP
標題[請益] 請問一下這個operator是什麼?
時間Mon Jul 14 11:31:09 2014
if(!$this->PreSend()) return false;
return $this->PostSend();
} catch (phpmailerException $e) {
$this->mailHeader = '';
$this->SetError($e->getMessage());
if ($this->exceptions) {
throw $e;
}
return false;
"->"
請問大大們,這個是什麼運算子啊?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.163.94.220
※ 文章網址: http://webptt.com/m.aspx?n=bbs/PHP/M.1405308671.A.F36.html
1F:推 coldollsheep:可以當作"的"來解釋嗎? 用到該物件的某方法 07/14 12:31
2F:→ tanson:-> 不是運算子,使用該物件的方法或取得類別時使用 07/14 12:37
3F:→ tanson:更正 不是類別,是屬性 07/14 12:38
4F:→ LPH66:要說->是運算子也無不可, 它的右邊只能放屬性名 07/14 14:13
5F:→ LPH66:事實上 PHP 內部把這個 token 叫做 T_OBJECT_OPERATOR 07/14 14:13