Skip to content

Instantly share code, notes, and snippets.

@marcbacon
Last active December 20, 2017 17:07
Show Gist options
  • Save marcbacon/cbd8550374e39ba962036a48e2c0231d to your computer and use it in GitHub Desktop.
Save marcbacon/cbd8550374e39ba962036a48e2c0231d to your computer and use it in GitHub Desktop.
[PHP Check Even Numbers] #php
$number = 20;
if ($number % 2 == 0) {
print "It's even";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment