Sr. PHP Programmer Question:

Can you assign the default values to a function parameters?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

Yes! You can set a parameter to have a default value if the function's caller doesn't pass it.


Previous QuestionNext Question
What is associate array in PHP?What is the purpose of _METHOD_ constant?