riceje7 Posted November 23, 2009 Share Posted November 23, 2009 i am looking to rebuild an array that i broke down to use the array_diff function. i have 2 arrays, $keyarray and $valuearray, what i want is to make a new array with the keys being the values from $keyarray and the the values in the new array being the values from $valuearray. does anyone know how i can do this? Link to comment https://forums.phpfreaks.com/topic/182697-rebuilding-an-array-from-two-arrays/ Share on other sites More sharing options...
cags Posted November 23, 2009 Share Posted November 23, 2009 array_combine Link to comment https://forums.phpfreaks.com/topic/182697-rebuilding-an-array-from-two-arrays/#findComment-964286 Share on other sites More sharing options...
riceje7 Posted November 23, 2009 Author Share Posted November 23, 2009 haha, guess i should have checked the php manual first, thanks! Link to comment https://forums.phpfreaks.com/topic/182697-rebuilding-an-array-from-two-arrays/#findComment-964288 Share on other sites More sharing options...
cags Posted November 23, 2009 Share Posted November 23, 2009 No worries, half the time I know there's a function for something, but damned if I can find out what it's called. Link to comment https://forums.phpfreaks.com/topic/182697-rebuilding-an-array-from-two-arrays/#findComment-964289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.