Sr. PHP Programmer Question:
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.
Previous Question | Next Question |
What is mean by an associative array? | How to create a text file in php? |