Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@flaviors200
Last active June 4, 2019 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flaviors200/98fe8c256eb02d90c139352503a29b6a to your computer and use it in GitHub Desktop.
Save flaviors200/98fe8c256eb02d90c139352503a29b6a to your computer and use it in GitHub Desktop.
Conditional statement: else
<?php
$x = 10;
$y = 14;
if ($x > $y) {
echo "$x è maggiore di $y";
} else {
echo "$x è minore o uguale di $y"; // Output: 10 è minore o uguale di 14
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment