I’m comming from C++ and from all I’ve read in the manual and code examples, none seem to separate a class method declaration from its definition. Is this not possible in PHP? Dosn’t this lead to very hard-to-read and cluttery interfaces?
Thanks
EDIT:
I want something like this:
class MyClass
{
public function Foo();
};
MyClass::Foo()
{
echo "O-hoy!";
}
This concept is not necessary in PHP. If you want to get a clean interface, you might define one. http://php.net/manual/en/language.oop5.interfaces.php