I'm just learning PHP, I copied this code from a tutorial:
<?
$num =7;
echo ($num == 7)? "Exactly 7" 🙁$num > 7)? "More than 7" : "less than 7";
?>
Now, whenever $num equals exactly seven it doesn't work!
It echoes the message " More than 7"
For the rest of the options it works perfectly. Could it be a problem with my PHP configuration? I know it's a very basic question but I can't figure out why this happens!
Thank you all and greetings from MX.