How can you split a floating point number stored in a variable into two new variables in PHP?

To split a floating point number stored in a variable into two new variables in PHP, you can use the `explode()` function to split the number based on the decimal point. This will create an array with two elements, representing the integer and decimal parts of the number. You can then assign these array elements to separate variables.

$number = 123.45;
$parts = explode('.', $number);
$integerPart = $parts[0];
$decimalPart = $parts[1];

echo "Integer part: " . $integerPart . "<br>";
echo "Decimal part: " . $decimalPart;