I have an amount like 0003000, the last 2 digits are the decimal number. I want to transform 0003000 to 00030,00 (insert a decimal comma in front of the last 2 digits). I tried to do this with substring. I take the length of the string with strlen and then I make -2, but it ignores the -2.
Here is an example, why is it being ignored?
substr($this->arrCheck['amountsum'],0,(strlen($this->arrCheck['amountsum']-2)))