I'm doing some exercises in PHP OO and I came across some functions that call a class before the variable. But I did not really understand why.
For example:
public function Exemplo(Request $request, $nome, $sobrenome) {
// métodos
}
If I call a class to use as a parameter, why not use a comma to stop the variable class?
It should be something simple, but this is causing confusion here. Thank you for letting me know.
hug.