$id, 'name'=>$name ); } return $array; } /** * Dropdown-Array zu String machen * * @param array $data * @return string */ public static function dropdown_array_to_string($data) { foreach( $data as $value) { $string[] = $value['id'].'='.$value['name']; } $string = implode(',', $string); return $string; } }