i have an array {
$e = Array ( [0] => 13 [1] => 11 [2] => 2 ) Array ( [989.32] => 13 [77] => 11 [0.99] =>2 );
and i want to multiply each key by their values respectively and use the values to create another array. Anyone know how? i've tried:
foreach($e as $y=>$z)
{$x= $y * $z;
$p=array();
array_push($p,$x);}
print_r($p);
but i got:
Array ( [0] => 1.98 )