I was just looking at this code and i don’t understand what RETURN TRUE does or what the point of it is? Can someone please explain?
class Elephpant {
public $colour;
public function dance() {
echo "elephpant dances!\n";
return true;
}
}
Thankyou in advance 😉
It returns the boolean TRUE to whatever called dance(). That’s all.
You would have to look at the consuming code to see if it makes something from it.