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

Using CSS to format MySQL query
Hi,

If i want to have a news page on my site, which displays all records of a table in descen

Send current URL in URL with a $_GET variable problem.
Hello community,

I have created a function that gets the current variable of a page, example:

How to make a mail Form secure?
I want to create an email Form on my web site. How can I make the Form secure so the submitted info

Help a newbee save my job !
Hey guys i am dying here i am new to php and would like for someone to help me with this problem

Libraries in C++
Hi all,

I have two libraries. one is based targeted on linux platform and uses another li

Schedule editor
Hi,

I have a question related to Schedule editor.
If we schedule a BLS for every 30

A little help needed passing hidden values to next page
I have a page that has hidden values in a form.

example
Code: <input name='signupID

Calling variables
I want to call this to my website but it doesn't display what I want it to,

Code: <h5&

Batch Session SM35 stuck in status 'in Background
Hi Experts,

I am facing a problem with Batch Input session SM35.

The batch se

Why use OOP?
Can someone explain to me why I should use OOP instead of procedure based code.

Im building a

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