daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. use comb as c;
  3.  
  4. c\add_handler('get', function() {
  5.  
  6.     $title = c\ifset('title', 'DEFAULT TITLE!');
  7.     $age   = (int) c\ifset('age', 0);
  8.  
  9. });
  10.  
  11.  
  12. c\add_handler('post', function() {
  13.  
  14.     // handle the POST request
  15.  
  16. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top