$optionValue = getUserOption("language"); echo "The user's preferred language is " . $optionValue;
$optionValue = getUserOption("theme"); if ($optionValue == "dark") { echo "The user has chosen the dark theme."; } else { echo "The user has chosen a light theme."; }In this example, we retrieve the user's preferred theme setting, and then use an if statement to check if the value is "dark". If it is, we print out a message saying that the user has chosen the dark theme. If it's not, we print out a message saying that the user has chosen a light theme. The getUserOption function is part of the PHP user management package library.