How can PHP switch statements be used effectively when customizing website designs?

When customizing website designs, PHP switch statements can be used effectively to apply different styles or layouts based on specific conditions. This can help streamline the code and make it easier to maintain and update the design of the website.

<?php
$theme = "dark";

switch ($theme) {
    case "light":
        echo "<link rel='stylesheet' type='text/css' href='light-theme.css'>";
        break;
    case "dark":
        echo "<link rel='stylesheet' type='text/css' href='dark-theme.css'>";
        break;
    default:
        echo "<link rel='stylesheet' type='text/css' href='default-theme.css'>";
}
?>