Example:
I want to have two different constructors, and I don't want to use func_get_arg (), because then it is invisible which arguments are possible.
Is it possible to write two of them, for example:
class MyClass {
public function __construct() {
}
public function __construct(array $arg) {
}
}
?
source
share