Hızlı bir şekilde ayırıcı olarak (mevcut metod) ile dize içine Concatenate dizi elemanı ',' var mı? Özellikle ben aşağıdaki rutin değiştirme yöntemi tek bir satır için arıyorum:
//given ('a','b','c'), it will return 'a,b,c'
private static function ConstructArrayConcantenate($groupViewID)
{
$groupIDStr='';
foreach ($groupViewID as $key=>$value)
{
$groupIDStr=$groupIDStr.$value;
if($key!=count($groupViewID)-1)
$groupIDStr=$groupIDStr.',';
}
return $groupIDStr;
}