I’d like to call a method if no method has been called, concrete example:
file foo.php would only contains
$p = new Foo();
the fact that no method is called would trigger a specific method.
file foo.php would now contains
$p = new Foo();
$p->bar();
this would not trigger the specific method since a method is called.
The point to do that would be to display help for user who use my class when they start.
Also I was thinking to use __destruct() but I’m not too sure when destruct is called.
As per DaveRandoms amazing comment: