Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a typo. Specified the PHP language when showing examples. Fixed…

… a php error (see line 121 of README.md)
  • Loading branch information...
commit 6dd547496576b42fa30edd9bc871090c901ca63b 1 parent 1c3b23e
@bheesham bheesham authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -110,15 +110,15 @@ $app->get('/foo([0-9]+)', function($matches) {
Shield will try to match exact routes first, but then fall back on the regex routing checks. In th eabove example
we're matching a route like `/foo123`. You'll notice that the first argument for the method is the routing matches as
-pulled from the [preg_match](http://php.net/preg_match) PHP method. You can use whaever preg-based expression you
+pulled from the [preg_match](http://php.net/preg_match) PHP method. You can use whatever preg-based expression you
want to use and have the values returned to you in the `$matches` value. So:
-```
+```php
<?php
include_once '../Shield/Shield.php';
$app = new Shield\Shield();
-$app>get('/foo([0-9]+)', function($matches){
+$app->get('/foo([0-9]+)', function($matches){
print_r($matches);
});
```
Please sign in to comment.
Something went wrong with that request. Please try again.