I have an array that has random integer numbers and I want to convert them into float numbers but I want to put decimal point after first two digits only. Following is my array:
[143] => Array
(
[0] => 723579
[1] => 112338261
)
[144] => Array
(
[0] => 723575
[1] => 11233847
)
[145] => Array
(
[0] => 723575
[1] => 11233
)
And I want the output to be the following.
[143] => Array
(
[0] => 72.3579
[1] => 11.2338261
)
[144] => Array
(
[0] => 72.3575
[1] => 11.233847
)
[145] => Array
(
[0] => 72.3575
[1] => 11.233
)
I think that I can manipulate it through string modification first and convert it into float number. Is there any easiest or simple way to manipulate it in PHP?