mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-07-29 04:30:45 +02:00
use short array notation in readme too
This commit is contained in:
@@ -16,7 +16,7 @@ $router->map( 'GET|POST', '/users/[i:id]/', function( $id ) {
|
||||
}, 'user-details');
|
||||
|
||||
// echo URL to user-details page for ID 5
|
||||
echo $router->generate( 'user-details', array( 'id' => 5 ) ); // Output: "/users/5"
|
||||
echo $router->generate('user-details', ['id' => 5]); // Output: "/users/5"
|
||||
```
|
||||
|
||||
## Features
|
||||
|
Reference in New Issue
Block a user