Hi, I need some help on reading commaseparated strings into arrays as numbers.
When I use
$data = "12.4,11.3,13.2 ";
$myarray = explode(',',$da ta);
I get strings, not numbers:.
$myarray:array =
0 = "12.4"
1 = "11.3"
2 = "13.2"
where I need
$myarray:array =
0 = 12.4
1 = 11.3
2 = 13.2
What to do?
When I use
$data = "12.4,11.3,13.2 ";
$myarray = explode(',',$da ta);
I get strings, not numbers:.
$myarray:array =
0 = "12.4"
1 = "11.3"
2 = "13.2"
where I need
$myarray:array =
0 = 12.4
1 = 11.3
2 = 13.2
What to do?
Comment