0
Good night!
Imagine that I have a Function with some parameters set as null:
public function Usuario($Nome = null, $Idade = null, $Sexo = null, $Email = null) {
$this->Nome = (string) $Nome;
$this->Idade = (int) $Idade;
$this->Sexo = (string) $Sexo;
$this->Email = (string) $Email;
}
Let’s assume I only want to use Name and Email, Sex and Age. How do I do this When I call the method?
I guess the way is:
Usuario("nome", null, null, "email")
– Francisco