PHP technical round interview Question on Array

preview_player
Показать описание
In technical round of php, interviewer expect interviewee should have knowledge of basic array manipulation. aim of this video is practice of array quetion to clear technical round question.
Рекомендации по теме
Комментарии
Автор

One liner -- foreach ($data as $key => $val ) $output[] = [$key, $val]; 👌👌

DarrellWoolfolk
Автор

Good. But It will be more understandable if you use foreach in this way ...

foreach ($data as $key => $value) {
$output[] = ['0' => $key, '1' => $value];
}

limonfwt
Автор

i have watched this video 2pm and at 3pm technical round same question asked.. and i am able to do.. thanks

bhanusukhwal