parse('g', array( '-string' => ALLC, 'numbers' => NR )); $in->parse('p', array( ',-text' => HSC, 'special' => array(CSR => '/^[a-z0-9\.\+]+$/Di') )); print_r($in->g); print_r($in->p); // format tricks // ^ - in the name of var name -> strtoupper() // , - in the name of var name -> strtolower() // - - in the name of var name -> trim() // preconfigured types - see the source for more info // define('HSC', 'html_special_chars'); // define('NR', 'numbers'); // define('LT', 'letters'); // case insensitive // define('LTNR', 'letters_numbers'); // case insensitive // define('CSR', 'custom_regexp'); // define('ALLC', 'all_chars'); // when input arg not match declared option, $in->g['foo'] will be set to FALSE // when input arg is not set (example: index.php) $in->g['foo'] will be not exist // when input arg is set but is empty (example: index.php?foo=) $in->g['foo] will be set to NULL ?>