Jump to content

Problem with Arrays


Archimedees

Recommended Posts

 

I have 2 arrays

 

$arActive =  ( Array ( [0] => active_0 [1] => active_1 [2] => active_2 [3] => active_3 [4] => active_4 [5] => active_5 [6] => active_9 [7] => active_12 [8] => active_17 [9] => active_18 [10] => active_19)

$arMyServers = (Array ( [0] => troub [1] => ide [2] => prog [3] => berli  [4] => maje [5] => ling[6] => teefix [7] => luegnix [8] => mar [9] => ser [10] => kan)

 

Now, I want to create another array with the numbers in the values of $arActive (in the active_) as Keys and the values of $arMyServers as values. Those number should match the keys in $$arMyServers e.g

 

 

$arActiveServers = (Array ([0]=> troubadix [1]=> ide [2]=> prog [3]=> berli [4]=> maje [5]=> ing [6]=>mar

[7] =>

 

 

Which function should I use???

Link to comment
https://forums.phpfreaks.com/topic/78533-problem-with-arrays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.