Skip to content

Instantly share code, notes, and snippets.

@roberto-butti
Created September 1, 2011 20:18
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 roberto-butti/1187148 to your computer and use it in GitHub Desktop.
Save roberto-butti/1187148 to your computer and use it in GitHub Desktop.
php joke!
<?php
$a = 0;
$b = "";
if ($a != $b) {
echo "ehy, <$a> and <$b> are different!?!?!?!?!?\n";
} else {
echo "ehy, <$a> and <$b> are the same!?!?!?!?!?\n";
}
echo "ok, i was joking!\n";
if ($a !== $b) {
echo "now, <$a> and <$b> are really different!\n";
} else {
echo "now, <$a> and <$b> are really the same!\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment