summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMalcolm Fell <malcolm@vendhq.com>2013-06-28 09:19:53 +1200
committerMalcolm Fell <malcolm@vendhq.com>2013-06-28 09:20:17 +1200
commit23e822bcc1c3d0c2fdee2eed474c9debc36818b1 (patch)
tree9b5a6e71038c4f91f3b374e37085f2fcd6297d8a
parentc8800bff13262b1d37b4f926a35410509ef8bbc9 (diff)
Correct syntax error declaring final method
-rw-r--r--php.html.markdown5
1 files changed, 3 insertions, 2 deletions
diff --git a/php.html.markdown b/php.html.markdown
index ec9c77e7..491255e9 100644
--- a/php.html.markdown
+++ b/php.html.markdown
@@ -367,10 +367,11 @@ Classes are insantiated with the ```new``` keyword. Functions are referred to as
```php
class MyClass {
- function myFunction() {
+ function myFunction()
+ {
}
- function function youCannotOverrideMe()
+ final function youCannotOverrideMe()
{
}