看板 PHP 關於我們 聯絡資訊
※ 引述《yhls (yhls)》之銘言: : ※ 引述《antontw (習慣)》之銘言: : : $ans = Array (0=>$c,$d); : : return $ans; : function abc(){ $ans = array(); : $p = 25; : $q = 20; : for ($i = 0; $i < 3; $i++){ : for ($j = 0; $j < 6; $j++){ : $c = $p + 119 * $i; : $d = $q + 55 * $j; Array_push($ans, array($c,$d)); : } : } return $ans; : } 我習慣用這種寫法啦... ... 有人有更好的嗎? 菜味還沒散(茶) -- Live Long and Prosper -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.67.68.236