How could I combine these arrays??


Posted on 16th Feb 2014 07:03 pm by admin

Hello.. I'm trying to figure out a way to combine these first two arrays to get the last array..

1st array:
Code: Array
(
[0] => zero
[1] => one
[2] => two
)

2nd array:
Code: Array
(
[0] => Array
(
[0] => test0
)

[1] => Array
(
[0] => test1
)

[2] => Array
(
[0] => test2
)
)

The array I'm trying to get out of both:
Code: Array
(
[zero] => Array
(
[0] => test0
)

[one] => Array
(
[0] => test1
)

[two] => Array
(
[0] => test2
)
)

No comments posted yet

Your Answer:

Login to answer
125 Like 40 Dislike
Previous forums Next forums
Other forums

How to make a input/output field with multiple lines
Hello.
I put a input/output field on the screen but I could not change height of it. I need to

Simple PHP/Java Help..
Hi,
I'm trying to build a little program to do with calculating postage. Unfortunately i haven't

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

How to form a xml form table with a single sql statement..?
Hi everyone,
I don't know if this is going to be a duplicate thread but i couldn't

Forum tutorial
Im a beginner in PHP. Im making a forum(previous questbook, counter and few others) to learn. For no

Get to know your fellow coder
I think it's time we got personal around here. There's a lot of code swapping and a few members kno

Problem with Sending Mail by PHP
hello all,
I m new to php, can u plz provide me the code to send mail by php having CAPTC

Can php detect connection speed and thereafter swap out elements?
No code to post, lads, yet. Just looking for a yay or nay at this stage:

Can a php script be

Error Messaging not working
I changed the way my form tells the user of an error. But I can't seem to get it to work properly.

Add_Months not Easy to Understand
Oracle is number 1, very fast and very easy. But....
OK, I think but have a problem, only 1 pro

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash