Skip to content

Instantly share code, notes, and snippets.

@wescleymatos
Created December 21, 2011 12:49
Show Gist options
  • Save wescleymatos/1505932 to your computer and use it in GitHub Desktop.
Save wescleymatos/1505932 to your computer and use it in GitHub Desktop.
Verifica se o numero passado é par ou impar;
<?php
$imparPar = function($number)
{
return $number & 1;
};
echo $imparPar(2);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment