0
print_r("</br>");
print_r($ptidz);
foreach ($techniques as $key => $tech)
{
if (in_array($tech['tech_id'], $ptidz)) {
print_r("</br>");
print_r($tech['tech_id']);
print_r($tech['tech_name']);
}
}
即時得到輸出這樣的值:我想這是有上述陣列
Array ([0] => 48 [1] => 2 [2] => 45)
2Apple
45lemon
48berry
但我想基於$ ptidz值優先
如:
48berry
2apple
45lemon
in通過代碼更具體地瞭解了一些內容 –