Archimedees Posted January 8, 2008 Share Posted January 8, 2008 Now, I have 2 arrays. $arOne and $arTwo I want to create another array $arThree which consists of the values of $arOne and the keys of $arTwo. Which function should I use??? Thanks. Link to comment https://forums.phpfreaks.com/topic/84988-array-keys-trouble/ Share on other sites More sharing options...
rajivgonsalves Posted January 8, 2008 Share Posted January 8, 2008 your code should be $arThree = array_merge(array_values($arOne),array_keys($arTwo)); hope its helpful Link to comment https://forums.phpfreaks.com/topic/84988-array-keys-trouble/#findComment-433416 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.