3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( 'id' => 'ID', 'tpc_id' => 'Topic', 'createName'=>'Created by', 'updateName'=>'Updated by', 'name' => 'Your Idea (Title)', 'tpc_name'=>'Topic', 'cmt_count'=>'Comments', 'for_count'=>'For', 'against_count'=>'Against', 'neutral_count'=>'Neutral', 'engagement_count'=>'Number of engagements', 'description' => 'More Detail', 'sort_order' => 'Sort Order', 'prima' => 'Prima', 'verified' => 'Verified', 'rtg_count' => 'Rtg Count', 'rtg_ave' => 'Rtg Ave', 'loc_id' => 'Loc', 'idea_count' => 'Idea Count', 'start_time' => 'Start Time', 'end_time' => 'End Time', 'modified_flag' => 'Modified Flag', 'status_id' => 'Status', 'create_time' => 'Create Time', 'create_usr_id' => 'Create Usr', 'update_time' => 'Update Time', 'update_usr_id' => 'Update Usr', ); foreach ($test as $key => $value) { echo "'".$key."' => Yii::t('Idea','".$value."'),"; echo "\n"; }
Output for 4.3.0 - 7.1.0
'id' => Yii::t('Idea','ID'), 'tpc_id' => Yii::t('Idea','Topic'), 'createName' => Yii::t('Idea','Created by'), 'updateName' => Yii::t('Idea','Updated by'), 'name' => Yii::t('Idea','Your Idea (Title)'), 'tpc_name' => Yii::t('Idea','Topic'), 'cmt_count' => Yii::t('Idea','Comments'), 'for_count' => Yii::t('Idea','For'), 'against_count' => Yii::t('Idea','Against'), 'neutral_count' => Yii::t('Idea','Neutral'), 'engagement_count' => Yii::t('Idea','Number of engagements'), 'description' => Yii::t('Idea','More Detail'), 'sort_order' => Yii::t('Idea','Sort Order'), 'prima' => Yii::t('Idea','Prima'), 'verified' => Yii::t('Idea','Verified'), 'rtg_count' => Yii::t('Idea','Rtg Count'), 'rtg_ave' => Yii::t('Idea','Rtg Ave'), 'loc_id' => Yii::t('Idea','Loc'), 'idea_count' => Yii::t('Idea','Idea Count'), 'start_time' => Yii::t('Idea','Start Time'), 'end_time' => Yii::t('Idea','End Time'), 'modified_flag' => Yii::t('Idea','Modified Flag'), 'status_id' => Yii::t('Idea','Status'), 'create_time' => Yii::t('Idea','Create Time'), 'create_usr_id' => Yii::t('Idea','Create Usr'), 'update_time' => Yii::t('Idea','Update Time'), 'update_usr_id' => Yii::t('Idea','Update Usr'),