- 001
- 002
- 003
- 004
- 005
- 006
- 007
- 008
- 009
- 010
- 011
- 012
- 013
- 014
- 015
- 016
- 017
- 018
- 019
- 020
- 021
- 022
- 023
- 024
- 025
- 026
- 027
- 028
- 029
- 030
- 031
- 032
- 033
- 034
- 035
- 036
- 037
- 038
- 039
- 040
- 041
- 042
- 043
- 044
- 045
- 046
- 047
- 048
- 049
- 050
- 051
- 052
- 053
- 054
- 055
- 056
- 057
- 058
- 059
- 060
- 061
- 062
- 063
- 064
- 065
- 066
- 067
- 068
- 069
- 070
- 071
- 072
- 073
- 074
- 075
- 076
- 077
- 078
- 079
- 080
- 081
- 082
- 083
- 084
- 085
- 086
- 087
- 088
- 089
- 090
- 091
- 092
- 093
- 094
- 095
- 096
- 097
- 098
- 099
- 100
foreach($combinations as $combination){
  $buffer = array();
  if(count($combination)){
	if(is_numeric($combination[0])){
		$a_cnt = count($words[$combination[0]]);
		for($a=0;$a<$a_cnt;$a++){
			if(is_numeric($combination[1])){
			$b_cnt = count($words[$combination[1]]);
			for($b=0;$b<$b_cnt;$b++){
				if(is_numeric($combination[2])){
				$c_cnt = count($words[$combination[2]]);
				for($c=0;$c<$c_cnt;$c++){
					if(is_numeric($combination[3])){
					$d_cnt = count($words[$combination[3]]);
					for($d=0;$d<$d_cnt;$d++){
						if(is_numeric($combination[4])){
						$e_cnt = count($words[$combination[4]]);
						for($e=0;$e<$e_cnt;$e++){
							if(is_numeric($combination[5])){
							$f_cnt = count($words[$combination[5]]);
							for($f=0;$f<$f_cnt;$f++){
								if(is_numeric($combination[6])){
								$g_cnt = count($words[$combination[6]]);
								for($g=0;$g<$g_cnt;$g++){
									if(is_numeric($combination[7])){
									$h_cnt = count($words[$combination[7]]);
									for($h=0;$h<$h_cnt;$h++){
										if(is_numeric($combination[8])){
										$i_cnt = count($words[$combination[8]]);
										for($i=0;$i<$i_cnt;$i++){
											if(is_numeric($combination[9])){
											$j_cnt = count($words[$combination[9]]);
											for($j=0;$j<$j_cnt;$j++){
												$buffer[] = $words[$combination[0]][$a]
														.' '.$words[$combination[1]][$b]
														.' '.$words[$combination[2]][$c]
														.' '.$words[$combination[3]][$d]
														.' '.$words[$combination[4]][$e]
														.' '.$words[$combination[5]][$f]
														.' '.$words[$combination[6]][$g]
														.' '.$words[$combination[7]][$h]
														.' '.$words[$combination[8]][$i]
														.' '.$words[$combination[9]][$j];
											}}
											else{
												$buffer[] = $words[$combination[0]][$a]
														.' '.$words[$combination[1]][$b]
														.' '.$words[$combination[2]][$c]
														.' '.$words[$combination[3]][$d]
														.' '.$words[$combination[4]][$e]
														.' '.$words[$combination[5]][$f]
														.' '.$words[$combination[6]][$g]
														.' '.$words[$combination[7]][$h]
														.' '.$words[$combination[8]][$i];
											}
										}}
										else{
											$buffer[] = $words[$combination[0]][$a]
													.' '.$words[$combination[1]][$b]
													.' '.$words[$combination[2]][$c]
													.' '.$words[$combination[3]][$d]
													.' '.$words[$combination[4]][$e]
													.' '.$words[$combination[5]][$f]
													.' '.$words[$combination[6]][$g]
													.' '.$words[$combination[7]][$h];
										}
									}}
									else{
										$buffer[] = $words[$combination[0]][$a]
												.' '.$words[$combination[1]][$b]
												.' '.$words[$combination[2]][$c]
												.' '.$words[$combination[3]][$d]
												.' '.$words[$combination[4]][$e]
												.' '.$words[$combination[5]][$f]
												.' '.$words[$combination[6]][$g];
									}
								}}
								else{
									$buffer[] = $words[$combination[0]][$a]
											.' '.$words[$combination[1]][$b]
											.' '.$words[$combination[2]][$c]
											.' '.$words[$combination[3]][$d]
											.' '.$words[$combination[4]][$e]
											.' '.$words[$combination[5]][$f];
								}
							}}
							else{
								$buffer[] = $words[$combination[0]][$a]
										.' '.$words[$combination[1]][$b]
										.' '.$words[$combination[2]][$c]
										.' '.$words[$combination[3]][$d]
										.' '.$words[$combination[4]][$e];
							}
						}}
						else{
							$buffer[] = $words[$combination[0]][$a]
									.' '.$words[$combination[1]][$b]
									.' '.$words[$combination[2]][$c]
									.' '.$words[$combination[3]][$d];
						}
                                 
        
            Вот такой вот кусок кода, к стати весь не поместился, я нашел в самописном движке, на котором моему знакомому сделали корпоративный сайт на 30 страниц. Бюджет был больше 2к зелени.
        
        
Комментарии (3) RSS
Добавить комментарий