Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

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.

Download Senior PHP Programmer Interview Questions And Answers PDF

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