Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Replace text within a portion of a string
<?php substr_replace(    array|string $string,    array|string $replace,    array|int $offset,    array|int|null $length = null): string|array
<?php         $precision = $column->attributes()[0];

        $scale = $column->attributes()[1] ?? 0;



        $value = substr_replace(str_pad("", $precision, '9'), ".", $precision - $scale, 0);



        if (intval($scale) === 0) {

            $value = trim($value, ".");