$lang = [
'en' => ['id'=>'1', 'name' => 'English', 'short' => '1', 'active' => '1',],
'tn' => ['id'=>'2', 'name' => 'Tamil', 'short' => '2', 'active' =>'1',],
]; // sample array`
In yii2 i can use the array map method as follow.
ArrayHelper::map($lang,'id','name');
But how to put the array index ('en' and 'tn') in the place 'id'
ex:ArrayHelper::map($lang, array_index,'name');
thanks