1
0
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:
Danny van Kooten
2019-11-10 20:32:52 +01:00
parent 98e97407de
commit 3a97b2c432

View File

@@ -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