I would like to make decimals in the following string representation as superscript:
$string .= number_format(round($value, (int)$decimal_place), (int)$decimal_place, $decimal_point, $thousand_point);
I am not very smart, but since I tried to use different methods, I found stack overflow. Things like ."<sup>or simple "<sup>", as well as .'<sup>'so many other combinations, but nothing works. I either get an error, or the price disappears due to an error that I introduced into the code, because, as I said, I'm not the sharpest tool in the barn.
source
share