Sr. PHP Programmer Question:
Download Questions PDF

What is the use of final keyword in PHP?

Answer:

PHP 5 introduces the final keyword, which prevents child classes from overriding a method by prefixing the definition with final. If the class itself is being defined final then it cannot be extended.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
What is mean by an associative array?How to create a text file in php?