mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-10-25 03:46:05 +02:00
Chapter editing fixes
This commit is contained in:
@@ -56,7 +56,7 @@ $sum = function ($a, $b) {
|
||||
};
|
||||
```
|
||||
|
||||
You can execute a closure by putting parentheses after the variable.
|
||||
You can execute a closure by putting parentheses after the variable that contains the closure.
|
||||
```php
|
||||
echo $sum(1, 2) . "\n";
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user