Advertisement
Guest User

default options

a guest
Jun 14th, 2011
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1.  
  2. $options = array('params' => array('firstname'=>'bob'));
  3. dispatch('/hello/:firstname', 'hello', $options);
  4.     function hello($firstname) # default parameters first
  5.    {
  6.         return "Hello $firstname";
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement