Кол-во комбинаций:
$words){ $out_word = preg_split("/\|/", $words); foreach ($out_word as $j => $word){ $arrSinonim[$key][$j]['word'] = $word; $arrSinonim[$key][$j]['count'] = 0; } } //print_r($arrSinonim); $arr = get_combinations($S,$arrSinonim); foreach ($arr as $comb => $val){ $str .= '

'; } echo $str; } ?>