Im trying to make a function that tests whether a triangle has equal sides and then print the answer but my function doesnt work. Any ideas ?
public function typeOfTriangle()
{
if ($this->lengthSideOne == $this->lengthSideTwo == $this->lengthBase)
{echo 'the triangle is equal'}
);
}