Pls, help :
I imagine that in an associative array composed by a $key=>$value is not possible
to have the same $key in different records, so :
$my_array = array('1'=>'good','1'=>'bad','1'=>'ugly');
if I
print_r($my_array);
I get :
Array ( [1] => ugly )
Do I am right?
Then, if
$my_array = array('1'=>'good','2'=>'bad','3'=>'ugly');
thats fine, but I need to push these data dinamically into $my_array?
$number_of_players = 3;
$quality = array('good','bad','ugly');
for($i=0;$i<$number_of_players;$i++){
$my_key = $i+1;
$pollo[] = array_push($my_key=> $quality[$i]);
}
This does not work.
Any help very appreciated.