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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/84988-array-keys-trouble/#findComment-433416 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.