prakash Posted December 29, 2007 Share Posted December 29, 2007 how can i create Associative Array from two array $array1=array('1', '3', '9', '8'); $array2=array('data1', 'data2', 'data3', 'data4'); need to create $newarray=array(1=>"data1", 3=>"data2", 9=>"data3", 8=>"data4", ); Quote Link to comment https://forums.phpfreaks.com/topic/83651-creating-associative-array/ Share on other sites More sharing options...
Barand Posted December 29, 2007 Share Posted December 29, 2007 www.php.net/array_combine Quote Link to comment https://forums.phpfreaks.com/topic/83651-creating-associative-array/#findComment-425533 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.