I have an array of the type:
array(4) {[0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" [3]=> string(1) "4"}
And I need to make a multidimensional array like this:
$data = array(
array(
$id => '1' ,
),
array(
'$id' => '2'
)
),
array(
'$id' => '3'
)
),
array(
'$id' => '4'
)
);
Where $id has constant value(let's say 6) and the value of the multidimensional array is the value from the first array.
Thanks
Leron