幫我解釋運作原理和$diqusql.="'{$i}'"的含意
$diqusql="diyu IN(";
foreach($diqu as $ i){
$diqusql.="'{$i}',";
}
$diqu rt )"
foreach是遍歷數組的語句,標準用法是:foreach(資料類型標識符in 表達式)
foreach是遍歷數組的語句,標準用法是:foreach(資料類型標識符in 表達式)
##e.g:
############################# ######$person = array(### "name1" => "peter",### "name2" => "lisi"###);###foreach ($person as $ person_value) {### echo "姓名:" . $person_value;### echo "<br>";###}###