Linked Questions

0 votes
3 answers
108 views

I have two arrays: Array ( [0] => 5 [1] => 4 ) Array ( [0] => BMW [1] => Ferrari ) And I would like to have that result. Merge the values with the same key Array ( ...
Bruno Andrade's user avatar
-1 votes
2 answers
230 views

i am trying to merge two similar arrays with the same keys Array ( [0] => 4064628 [1] => 4064953 [2] => 4064922 [3] => 4064870 [4] => 4064789 [5] => 4064631 ...
Andrei Manta's user avatar
0 votes
4 answers
87 views

How to convert a multidimensional array in two arrays in php This array: Array ( [name] => Array ( [0] => Lighthouse.jpg [1] => Penguins.jpg ) ...
user2039290's user avatar
1 vote
7 answers
110 views

So, imagine you have 3 arrays: 1,2,3,4,5 6,7,8,9,10 11,12,13,14,15 And you want to combine them into new arrays based on index: 1,6,11 2,7,12 3,8,13 4,9,14 5,10,15 What on earth could achieve this? ...
Benjamin Allison's user avatar
0 votes
3 answers
101 views

I have an array of date like this Array ( [0] => Array ( [imageName] => WNgrRdqZ [alt] => alt text ) [1] => Array ( [...
TMH's user avatar
  • 6,256
0 votes
3 answers
92 views

I have this array: SimpleXMLElement Object ( [id] => Array ( [0] => Koala.jpg [1] => Jellyfish.jpg ) [desc] => Array ( [0] => koaladesc [1] =...
user2487040's user avatar
1 vote
1 answer
50 views

I need to turn this array: $data = array(array('a', 'b'), array('1','2'), array('hi','bye')); Into this one: $final = array (array ('a', '1', 'hi'), array ('b','2','bye')); How do I loop $data to ...
lleoun's user avatar
  • 477
3 votes
2 answers
100 views

I have a array in below format Array ( [title] => Array ( [0] => Ram [1] => ramesh [2] => john [3] => mahesh ) ...
prabhat kumar jena's user avatar
-1 votes
4 answers
57 views

I'm trying to merge two arrays together, however I can't figure out how. 1st Array: Array ( [0] => a [1] => b [2] => c ) 2nd Array: Array ( [0] => 1 [1] => 1 ) ...
Artano's user avatar
  • 23
0 votes
2 answers
75 views

I've array like this in php: Array ( [Color] => Array ( [0] => Pink [1] => Pink [2] => Pink [3] => Pink ) [Size] ...
Clemen Swichmann's user avatar
0 votes
2 answers
94 views

I'm not sure how to search for the problem I'm facing, so that's why I'm asking here. I want to know if there is a native php-function to transform following array I get from a html-form: Original ...
Dominik Vogt's user avatar
1 vote
3 answers
71 views

I need to convert a PHP array that I'm getting from a form submission, so that I can use it more usefully in a db. Array ( [first_name] => Array ( [0] => Ben [1] => Tom ...
Ben's user avatar
  • 53
0 votes
3 answers
68 views

$_POST is equal to: Array ( [time_start] => Array ( [0] => 00:00 [1] => 02:00 ) [time_end] => Array ( [0] => 03:00 ...
Max Base's user avatar
  • 639
-1 votes
2 answers
230 views

I have nested array with key & value pair. i want to convert it in single array. /* This is current array */ Array ( [id] => Array ( [0] => 1 [1] => 2 ...
jagdishpatel's user avatar
0 votes
4 answers
157 views

I have this array: Array ( [Saturday] => Array ( [11:00am] => 0 [12:00pm] => 0 [1:00pm] => 0 [2:00pm] => 0 [3:...
user979331's user avatar
  • 12.1k

15 30 50 per page
1
3 4
5
6 7
10