HosipLan

Untitled

Mar 27th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. $router[] = new Route('<list [0-9,]+>/', array(
  2.     ...,
  3.     'list' => array(
  4.         Route::FILTER_IN => function ($list) {
  5.             return is_array($list) ? $list ? explode(',', $list);
  6.         },
  7.         Route::FILTER_OUT => function ($list) {
  8.             return is_array($list) ? implode(',', $list) ? $list;
  9.         },
  10.     )
  11. ));
Advertisement
Add Comment
Please, Sign In to add comment