0
我有一個語言文件看起來像這樣搜索和使用語言文件
$lang['dashboard ']='Dashboard';
$lang['financial_dashboard']='Financial Dashboard';
$lang['project_dashboard']='Project Dashboard';
陣列從數據庫
Array ([0] => Array ([id] => 109 [text] => dashboard [items] => Array ([0] => Array ([id] => 1 [text] => financial_dashboard [items] => 109) [1] => Array ([id] => 108 [text] => project_dashboard [items] => 109)))
我如何才能找到結果和數組中替換值代替多維數組與我的語言文件中的值,但保持原樣,以便我的最終輸出看起來像這樣
Array ([0] => Array ([id] => 109 [text] => Dashboard [items] => Array ([0] => Array ([id] => 1 [text] => Financial Dashboard [items] => 109) [1] => Array ([id] => 108 [text] => Project Dashboard [items] => 109)))
任何建議