Answer the question
In order to leave comments, you need to log in
Why is it necessary to precede the variable with the type of the variable?
Please explain to the php-shnik why when declaring a function, it is necessary to put the name of the class before the variable name? For example Circle var;
And why in a method before parameters it is necessary to interpose type?
public function (String a) {
}
whereas in php you can just
public function (a) {
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question