Minor (non-quote) grammar/spelling fixes

This commit is contained in:
dansmith
2013-07-15 15:32:35 +01:00
parent dcb2d68db4
commit ca1835615a
10 changed files with 14 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ interfaces, inheritance, constructors, cloning, exceptions, and more.
### Functional Programming
PHP supports first-class function, meaning that a function can be assigned to a variable. Both user defined and built-in
PHP supports first-class function, meaning that a function can be assigned to a variable. Both user-defined and built-in
functions can be referenced by a variable and invoked dynamically. Functions can be passed as arguments to other
functions (feature called Higher-order functions) and function can return other functions.
@@ -39,7 +39,7 @@ can be used interchangeably with anonymous functions in almost all cases.
### Meta Programming
PHP supports various forms of meta programming through mechanisms like the Reflection API and Magic Methods. There are
PHP supports various forms of meta-programming through mechanisms like the Reflection API and Magic Methods. There are
many Magic Methods available like `__get()`, `__set()`, `__clone()`, `__toString()`, `__invoke()`, etc. that allow
developers to hook into class behavior. Ruby developers often say that PHP is lacking `method_missing`, but it is
available as `__call()` and `__callStatic()`.