how do i combine these arrays and use a specific value as key/index?
here's sample array i'm playing with:
Array
(
[0]=>john
[1]=>peter
)
Array
(
[dept]=>engineering
[sub]=>trigonometry
[time]=>08:00
)
what i want to achieved is like this:
Array
(
[john]=>john
[dept]=>engineering
[sub]=>trigonometry
[time]=>08:00
[peter]=>peter
[dept]=>engineering
[sub]=>trigonometry
[time]=>08:00
)
thanks in advance guys, hope u can help me with this. appreciate it.