I am trying to generate an array containing an array for each of the items
the code i tried:
$array = array(1,2,3,4,5,6,7,8,9,10 );
$array2 = array('how','are','you') ;
foreach( $array2 as $key => $value ){
$value = $array2;
}
result of this code
array(3) {
[0]=>
string(3) "how"
[1]=>
string(3) "are"
[2]=>
string(3) "you"
}
The desired result is an array where each of the words contains the following values:
how = 1,2,3,4,5,6,7,8,9,10
are = 1,2,3,4,5,6,7,8,9,10
you = 1,2,3,4,5,6,7,8,9,10