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
Did you know?Explore Trending and Topic pages for more stories like this.
(
[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

PHP Surveys
I really would like some advice.

If you have a client come to you asking for a survey to be d

Connection Timeout
I'm using xmii 12.0

I'm calling a transaction as a web service from a windows application

Insert data in Mysql and move to another page
I'm stuck with this simple problem. I need to insert data in Mysql and then hit submit and move to a

array help
Does anyone know how to require 10 text fields for individual grades and output class average? (10 p

getting most records by count
Code: [Select]<?php

$connect = mysql_connect("localhost","dam

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

Accessing element of object array
Hello

My object looks like this:


Array ( [0] => User Object ( [id] =>

help countdown timers
hello every one,

I'd like to know how to insert many countdowns in the same page.
The dura

How to load mysql (and other) extensions into PHP
How to load mysql (and other) extensions into PHP PHP Development forum discussing coding practices,

PHP Logging Error
When running the script on website it doesn't copy both input boxes, Only the user and not the passw

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