メモ:配列ループ、重複削除&詰める
//配列ループ for($i = 0; $i < count($this->arrProductsKeywords); $i++) { $arrKeywordsAll .= "," . $this->arrProductsKeywords[$i]['comment3']; }
//重複削除&詰める foreach (array_unique($arrKeywords) as $arrKeywordsUni[]){};
//配列ループ for($i = 0; $i < count($this->arrProductsKeywords); $i++) { $arrKeywordsAll .= "," . $this->arrProductsKeywords[$i]['comment3']; }
//重複削除&詰める foreach (array_unique($arrKeywords) as $arrKeywordsUni[]){};