I have just been shown the method to remove numbers with more than 2 decimal places from an array [here]. The thing is when i try to format the output using echo instead of var_dump as such:
$line = 1;
for($i = 1; $i < count($value1); $i++){
echo "$line | ".$value1[$i][0]." | ".$value1[$i][1]." | ".$value1[$i][2]." | ".$value1[$i][3]." | ".$value1[$i][4].'<br>';
$line = $line + 1;
}
I get many "Notice: Undefined offset: " all over the place. Is there a way to reset the rows in the array?
The reason i need to format it with "echo" is so that i can copy the output directly and paste it into a document without having to delete the unnecessary characters from "var_dump". Am i doing it wrong?
Thanx in advance...
Thanx in advance.