0
Just as it is done in various programming languages, such as Java, C# and many others, you have to define in PHP the type of variable that we want to be initialized in the parameters of a method?
The code below is an example of what I’m talking about, only in Java
//Nesse método, foi especificado que a variável "i" deverá ser do tipo int
public void executar(int i) {
}
Very good to know, now I’m a fan of PHP 7
– BrunnoFdc