Location: PHPKode > projects > PHP Business Rules > test/advanced_logic.php
<?php
	require_once('phprules/phprules.php');
	require_once('test/test_facts.php');
	 
	$wm = new WorkingMemory();
	$wm->insert(new A(1,3));
	$wm->insert(new A(1,4));
	$wm->insert(new B(5,6));
	 
	$rr = new RuleReader();
	$rs = new RuleSession($rr->parseFile("test/rules/advanced_logic.srl"), $wm);
	$rs->verbosity = 1;
	$rs->fireAll();
 ?>
Return current item: PHP Business Rules