Re: [請益] 請問一下這個operator是什麼?

作者: wanzoo (Zoo)   2014-07-14 14:40:13
可否請大大們示範一下用法?
網路上找得到的資料都有點模糊。
另外還有一個「::」,也是同樣的東西嗎?
※ 引述《wanzoo (Zoo)》之銘言:
: if(!$this->PreSend()) return false;
: return $this->PostSend();
: } catch (phpmailerException $e) {
: $this->mailHeader = '';
: $this->SetError($e->getMessage());
: if ($this->exceptions) {
: throw $e;
: }
: return false;
: "->"
: 請問大大們,這個是什麼運算子啊?
作者: coldollsheep (拿出我的駭客靈魂)   2014-07-14 14:46:00
類似,但是是給類別用的,不是給物件用的
作者: LPH66 (-6.2598534e+18f)   2014-07-14 14:59:00
http://stackoverflow.com/questions/3173501$類別實體->屬性, 類別名::靜態屬性既然原 PO 又多問了一個運算子, 順便推一下這篇整理文好了:http://stackoverflow.com/questions/3737139這裡整理了許多在 SO 上問的 PHP 運算子問題
作者: coldollsheep (拿出我的駭客靈魂)   2014-07-14 16:43:00
樓上那篇不錯耶....

Links booklink

Contact Us: admin [ a t ] ucptt.com