How can you determine if a string starts with the Celsius symbol "°" in PHP?

To determine if a string starts with the Celsius symbol "°" in PHP, you can use the `substr()` function to extract the first character of the string and then compare it with the Celsius symbol. If they match, then the string starts with the Celsius symbol.

$string = "°Celsius";
$celsiusSymbol = "°";

if (substr($string, 0, 1) === $celsiusSymbol) {
    echo "The string starts with the Celsius symbol.";
} else {
    echo "The string does not start with the Celsius symbol.";
}