Skip to content

Commit

Permalink
Update 2.path-parameters.md
Browse files Browse the repository at this point in the history
  • Loading branch information
razshare authored Aug 25, 2023
1 parent 438643b commit 688ecbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/2.path-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ As long as you wrap it with braces (`{}`) your parameters will be injectable.

```php
$server->router->get("/account/{username}@{page}",function(
#[Param] string $username,
#[Param] string $page
string $username,
string $page,
){
return "hello $username, you are looking at page $page.";
});
Expand Down

0 comments on commit 688ecbe

Please sign in to comment.