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

cURL Sending File as Post
This is a bit complicated, I'm just hoping someone else has run into this and knows how to do it a d

New Login Script
Hi all, i attempted to create a whole new login script witch isnt working for some reason i dont kno

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

If a form submits back to same page do you need to use $get
IM trying to pass page number and year that was selected back to the same page.

i have this c

finding key position of specified value in multi-dimensional array
Code: $openedfile = fopen($tfc_file4, "r");
$rc = 1;
while(!feof($openedfile))
{<

foreach help.
Hello all,

First time I'm attempting to use a foreach statement and was just wondering if my

help with image upload code
Hello,

right now this code I have resizes images and then places them into the uploads folder

Multithreading design
Hi

I have come up with a Singleton class that manages a pool of database connections. Basical

Grouping and sorting results
Please help with this query.

I have 2 tables in a database, countires and cities. states look

Values disappear from my array :( HELP!
hey all, I have a lil mysql/php/apache script that queries a database
and pulls put 5 integers.

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