PHP ManualFinal KeywordPHP 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.
Example #1 Final methods example
<?php
Example #2 Final class example
<?php
![]() |
PHP-Index
New Tutorial entries
|