mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-10 15:54:01 +02:00
Minor (non-quote) grammar/spelling fixes
This commit is contained in:
@@ -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()`.
|
||||
|
Reference in New Issue
Block a user