MatchNameExample1.php File Reference

Go to the source code of this file.

Functions

 MatchNameExample1 ()


Function Documentation

MatchNameExample1 (  ) 

Definition at line 10 of file MatchNameExample1.php.

00011 {
00012         $objMatchName = new MatchName();
00013         $objMatchName->addItem( "Molly" );
00014         $objMatchName->addItem( "Armitage" );
00015         $objMatchName->addItem( "Wintermute" , "machine" );
00016         $objMatchName->addItem( "Case" , "hacker" );
00017         if ( $objMatchName->found( "Molly" ) !== true ) return false;
00018         if ( $objMatchName->match( "Molly" ) !== true ) return false;
00019         if( $objMatchName->match( "Wintermute" ) !== "machine" ) return false;
00020         if( $objMatchName->match( "Jackson" ) !== false ) return false;
00021         return true;
00022 }
00023 
00024 if( MatchNameExample1() )
00025 {
00026         print "ok!";
00027 }


Generated on Sat Apr 7 14:19:11 2012 for CodeToDiagram by  doxygen 1.5.9