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

Is this possible? If one file assigned to an ID...
I have a page that lists property listings assigned to a specific user (a manage page), with brief t

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

Get value from Select menu
Hi!

Have tried to find the solution on the web. Don't know if there is an easy one. A descrip

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

newbie error
what is wrong with this code ?

<html>
<body>

<?

search query in mysql in php problem
my search query wont work, i know, that my codes are correct.please help

Code: [Select]&l

The repetition structure: the while statement not working
New programming student, have assignment as follows:
A restaurant has 4 lunch combos for custom

Confusing Functions
So, I've been reading up on Functions and I like them! However, I need some help using variables in

Creating a custom API
I'm creating a site, and I need to create a basic API. Unfortunately I have no idea where to start.

How to ask a regex question?
Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignor

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