What is the best way to split a column of numbers in PHP to add a decimal point?

When splitting a column of numbers in PHP to add a decimal point, you can use the `substr` function to separate the integer part from the decimal part. By knowing the position of the decimal point, you can split the number accordingly and concatenate them with a decimal point in between.

$number = "12345"; // Example number without decimal point
$decimal_position = 2; // Position of the decimal point

$integer_part = substr($number, 0, $decimal_position);
$decimal_part = substr($number, $decimal_position);

$number_with_decimal = $integer_part . "." . $decimal_part;

echo $number_with_decimal; // Output: 123.45