I don't see anything wrong with your coding
<?php
$array = array(1.5, 3.5, 6.27485, 7);
foreach($array as $n=>$v){
echo $n . ":" . $v . "<br>";
}
?>
works fine for me.
Remember that there is a difference between this:
$arrayValue[1] = 2.57600;
echo $arrayValue[1];
and this:
$arrayValue[2] = '2.57600';
echo $arrayValue[2];
Try this code and see for yourself. Putting quotes treats it as text and it will display the zeros (nevertheless as long as it's a valid number you can still use it for math operations).
And to really throw stuff at you, my favorite number function:
echo number_format(2.576, 2, '', '.');
see what happens!