Thats my first post here, so first of all, sorry for mistakes. I Cant solve some problem. I have to create an array from two other arrays :
Array#1:
$a = array(5, 2, 3);
Array#2:
$b = array(0 => array(
'key1' => '2',
'key2' => 'content2'),
(1 => array(
'key1' => '3',
'key2' => 'content3'),
(2 => array(
'key1' => '5',
'key2' => 'content1');
My output array have to be sth like that:
$output = array(0 => array(
'key1' => '5',
'key2' => 'content1'),
(1 => array(
'key1' => '2',
'key2' => 'content2'),
(2 => array(
'key1' => '3',
'key2' => 'content3');
And i totally dont know how to solve my problem. No idea what to do. I tried almost everything. Any help? How to start (again)?