symfony-pack
symfony-pack copied to clipboard
Answer on a question not so clear
Hi, About the question in php.yml line 44 : question: 'Does PHP support function overloading?' answers: - {value: "Yes, in all cases", correct: false} - {value: "Yes, but not in all cases", correct: true} - {value: "Yes, but it depends on the function scope", correct: false} - {value: "Yes, except when it is an anonymous function", correct: false}
Does the correct answer would be clearer like this?
Indeed. I can't find anything useful on “function overloading”. But I can find many things about method overloading (__call
and __callStatic
).
Certificationy supports a help
field with some advices (but it's never used). Maybe we should fill this field, after we got an answer!
Maybe @prevueltas can answer this question, because he added it a couple of years ago.
Maybe the question is not specific. It is indeed possible to be able to overload with a magic method but it is also possible to have overloads with polymorphism.