【发布时间】:2014-03-12 15:23:04
【问题描述】:
我正在尝试创建一个函数来测试三角形是否具有相等的边,然后打印答案,但我的函数不起作用。有任何想法吗 ?
public function typeOfTriangle()
{
if ($this->lengthSideOne == $this->lengthSideTwo == $this->lengthBase)
{echo 'the triangle is equal'}
);
}
【问题讨论】:
标签: php function object if-statement