mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-06 14:06:34 +02:00
Fix typos and improve readability of one sentence in Section 3.
This commit is contained in:
@@ -21,10 +21,10 @@ interfaces, inheritance, constructors, cloning, exceptions, and more.
|
||||
|
||||
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.
|
||||
other functions (a feature called _Higher-order Functions_) and function can return other functions.
|
||||
|
||||
Recursion, a feature that allows a function to call itself, is supported by the language, but most of the PHP code
|
||||
focus on iteration.
|
||||
Recursion, a feature that allows a function to call itself, is supported by the language, but most PHP code
|
||||
is focused on iteration.
|
||||
|
||||
New anonymous functions (with support for closures) are present since PHP 5.3 (2009).
|
||||
|
||||
|
@@ -6,7 +6,7 @@ anchor: command_line_interface
|
||||
## Command Line Interface {#command_line_interface_title}
|
||||
|
||||
PHP was created to write web applications, but is also useful for scripting command line interface (CLI) programs.
|
||||
Command line PHP programs can help automate common tasks like testing, deployment, and application administrivia.
|
||||
Command line PHP programs can help automate common tasks like testing, deployment, and application administration.
|
||||
|
||||
CLI PHP programs are powerful because you can use your app's code directly without having to create and secure a web
|
||||
GUI for it. Just be sure **not** to put your CLI PHP scripts in your public web root!
|
||||
|
Reference in New Issue
Block a user