I have this question about decimal numbers from oracle to php. If i have "0,7" on oracle, for example, when i use it on php, it will be ",7", without the zero.
Anyone one knows why? And a possible solution to this? Thanks!
I have this question about decimal numbers from oracle to php. If i have "0,7" on oracle, for example, when i use it on php, it will be ",7", without the zero.
Anyone one knows why? And a possible solution to this? Thanks!
Whilst I'm not familiar with Oracle, you can re add those zeros with something like this:
function maybe_prefix_zero($input) {
if( substr($input, 0, 1) === ',' ) return '0' . $input;
else return $input;
}