我想要在一个对象中使用三元运算符。 if($msg == 'hello'){ $o->setHello('hello'); else $o->setHello('bye'); 我该如何做到这一点? 谢谢