Array
(
[0] => Alison
[1] => Roxi
[2] => Pippin
)
Array
(
[Alison] => Array
(
[id] => s54062
[age] => 20
)
[Roxi] => Array
(
[id] => s54063
[age] => 37
)
[Pippin] => Array
(
[id] => --Empty String--
[age] => 43
)
)
Employee #1 is Alison and is 20 years old.
Employee #2 is Roxi and is 37 years old.
Employee #3 is Pippin and is 43 years old.
Almost works:
Employee #4 is Alison and is 20 years old.
Employee #4 is Roxi and is 37 years old.
Employee #4 is Pippin and is 43 years old.
Works better:
Employee id: s54062 is Alison and is 20 years old.
Employee id: s54063 is Roxi and is 37 years old.
Employee id: is Pippin and is 43 years old.
Can you rewrite the code so that 1) ids are the key and 2) age and name are inside the nested array, ie the details array.