How can PHP be used to separate a decimal number into its integer and decimal parts?

To separate a decimal number into its integer and decimal parts in PHP, you can use the `floor` function to get the integer part and subtract it from the original number to get the decimal part.

$number = 10.75;
$integerPart = floor($number);
$decimalPart = $number - $integerPart;

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