i am badly struck in this error... simply unable to get it
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\vas1\apriori.php on line 36
my code for this function was like:
function combination($member,$num){
$n = count($member);
$total = pow(2, $n);
$list =array();
$k=0;
for ($i = 0; $i < $total; $i++) {
$list[$k]=array();
for ($j = 0; $j < $total; $j++) {
if ((pow(2, $j) & $i)) $list[$k][]=$member[$j];
}
if(count($list[$k])==$num){
$k++;
}else{
unset($list[$k]);
}
}
return $list;
}
and line 36 is:
if ((pow(2, $j) & $i)) $list[$k][]=$member[$j];