How does PHP compare to other programming languages, such as C, in terms of handling leading zeros in numeric values?

When handling leading zeros in numeric values, PHP treats them as octal values by default, which can lead to unexpected behavior. To ensure leading zeros are not interpreted as octal values, you can use the `intval()` function in PHP to explicitly convert the numeric value to a decimal integer.

$number = "0123";
$decimal_number = intval($number);
echo $decimal_number; // Output: 123