|
Posted by David Haynes on 03/07/06 23:04
Roco3D wrote:
> I have an array with numbers from a excel file in 12345,78 format and y
> need to change the coma (,) for a point (.) to make this numbers float.
> I have this:
>
> str_replace(",",".",$array_with_numbers); but does not work.
>
> Any help???
>
A brute force method:
for( $i = 0; $i < count($array_with_numbers); $i++) {
str_replace(',', '.', $array_with_numbers[$i];
}
-david-
Navigation:
[Reply to this message]
|