Skip to content

Commit 853c614

Browse files
authored
Small syntax errors
Two misplaced parentheses
1 parent aa5666b commit 853c614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ Placeholders are easier to use than PRCEs, but offer you less control as they in
182182

183183
```php
184184
$router->get('/movies/{movieId}/photos/{photoId}', function($movieId, $photoId) {
185-
echo 'Movie #' . $movieId . ', photo #' . $photoId);
185+
echo 'Movie #' . $movieId . ', photo #' . $photoId;
186186
});
187187
```
188188

189189
Note: the name of the placeholder does not need to match with the name of the parameter that is passed into the route handling function:
190190

191191
```php
192192
$router->get('/movies/{foo}/photos/{bar}', function($movieId, $photoId) {
193-
echo 'Movie #' . $movieId . ', photo #' . $photoId);
193+
echo 'Movie #' . $movieId . ', photo #' . $photoId;
194194
});
195195
```
196196

0 commit comments

Comments
 (0)