Skip to content

Instantly share code, notes, and snippets.

@jasonreposa
Created May 25, 2012 15:58
Show Gist options
  • Save jasonreposa/2788932 to your computer and use it in GitHub Desktop.
Save jasonreposa/2788932 to your computer and use it in GitHub Desktop.
Double equals vs triple equals on a number and string
echo 0 == '@attributes' ? 'YES' : 'NO';
echo "<br>\n";
echo 0 === '@attributes' ? 'YES' : 'NO';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment