I'm a student studying Application development and we're currently in a deep dive for PHP. I've only used and learnt off the language this monday. We've already gotten exercises concerning Tables, Arrays, etc. But I've gotten stuck at IfElse statements of all places. Could someone please explain why I get an error?
Basically I want it to react to the value of 19. So when it's above it'll say that Dutch message, or when it's lower it'll state the other question, visa versa.
$temperatuur = 19
if ($temperatuur > 20) {
echo "Vandaag is het lekker warm. Namelijk 23 graden";
} elseif ($temperatuur > 10) {
echo "Het is weer om een dun jasje aan te trekken";
} else ($temperatuur < 10) {
echo "Brrr… Ik trek mijn muts en winterjas aan";
}