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", ); 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 Link to comment https://forums.phpfreaks.com/topic/83651-creating-associative-array/#findComment-425533 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.