Tag:php array
$file = ' xingxiu.php '; $xx = Array (0=>array (' id ' =>13, ' Xingxiu ', ' room Stay '), 1=>array (' id ' =>14, ' xingxiu ' = ' wall '), 2=>array (' id ' =>15, ' Xingxiu ' + ' Kui '), 3=>array (' id ' =>16, ' xingxiu ' = ' Lou Homestay '), 4=>array (' id ') =>17, ' xingxiu ' = ' stomach house '), 5=>array (' id ' =>18, ' xingxiu ' = ' Pleiades '), 6=>array (' id ' =>19, ' xingxiu ' = > ' Oyado '), 7=>array (' id ' =>20, ' xingxiu ' = ' mouth '), 8=>array (' id ' =>21, ' xingxiu ' = ' "), 9=>array (' id ' =>22, ' xingxiu ' = ' well '), 10=>array (' id ' =>23, ' xingxiu ' = ' haunted House '), 11=>array (' id ') =>24, ' xingxiu ' = ' Willow House '), 12=>array (' id ' =>25, ' xingxiu ' = ' stars '), 13=>array (' id ' =>26, ' Xingxiu ' = ' (' + '), 14=>array (' id ' =>27, ' xingxiu ' = ' wings '), 15=>array (' id ' =>28, ' xingxiu ' = ' chang '), 16=>array (' id ' =>1, ' xingxiu ' = ' Corner Stay '), 17=>array (' id ' =>2, ' xingxiu ' = ' Shing '), 18=>aRray (' id ' =>3, ' xingxiu ' = ' di '), 19=>array (' id ' =>4, ' xingxiu ' = ' room Stay '), 20=>array (' id ' =>5, ' x Ingxiu ' + ' heart Stay '), 21=>array (' id ' =>6, ' xingxiu ' + ' The ' end of the house '), 22=>array (' id ' =>7, ' xingxiu ' = ' Ji Homestay '), 23=>array (' id ' =>8, ' xingxiu ' + ' ' bucket House '), 24=>array (' id ' =>10, ' xingxiu ' = ' Women's house '), 25=>ar Ray (' ID ' =>11, ' xingxiu ' = ' virtual house '), 26=>array (' id ' =>12, ' xingxiu ' = ' dangerous Stay '); $num = 0; for ($i =1; $i <13; $i + +) {for ($j =1; $j <31; $j + +) {if (($num%30==0&& $j ==1) && $i ==2) {$nu m = $num-1; }else if ($num + $i-2)%30==0&& $j ==1&& $i >2&& $i <7) {$num = $num-1; }else if ($num + $i-4)%30==0&& $j ==1&& $i >8&& $i <11) {$num = $num-1; }else if (($num + $i-5)%30==0&& $j ==1&& $i >11) {$num = $num-1; } $xingxiu [$i] [$j] [' id '] = $xx [$num%27][' id ']; $xingxiu [$i][$j] [' xingxiu '] = $xx [$num%27][' Xingxiu ']; $num + +; }} export_to_file ($file, $xingxiu);//<a target=_blank target= "_blank" href= "http://blog.csdn.net/hearain5 28/article/details/40144427 "> This function see previous blog </a>
Create an array of constellations and birth controls