00001 <?php 00002 /* 00003 * Examples using the rule match list. 00004 * 00005 * @package RuleMatchList 00006 */ 00007 00008 require_once( "_start.php" ); 00009 00010 $objRule = new RuleMatchList(); 00011 $objRule->addIgnoredName( "something" ); 00012 print serialize( $objRule->match( "else" ) ) ; // 1 00013 print serialize( $objRule->match( "something" ) ) ; // 0 00014 $objRule->addExclusiveName( "noop" ); 00015 print serialize( $objRule->match( "else" ) ) ; // 0 00016 print serialize( $objRule->match( "noop" ) ) ; // 1 00017 00018 ?>
1.5.9