PHP – Final keyword

Like in Java, the meaning of the keyword “final” in php5 is:

Final classes: not extendable

 final class A { ...}

Final methods: not overridable

 class A { final public function f() { ... } ...}

final class members(properties)

not supported in PHP5 !! (differently from Java)

  1. You made some fine points there. I did a search on the matter and found a good number of folks will go along with with your blog.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

More in Code, PHP, Software (151 of 173 articles)


Another common operation in PHP scripts is array searching. This process can be quite slow as regular search mechanism such ...