Skip to content

Instantly share code, notes, and snippets.

@Azer5C74
Last active April 19, 2023 12:08
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 Azer5C74/2ff16022089a9d39eb8a32e8b91457d2 to your computer and use it in GitHub Desktop.
Save Azer5C74/2ff16022089a9d39eb8a32e8b91457d2 to your computer and use it in GitHub Desktop.
<?php
// Loose comparison
if (0 == false) {
echo "0 equals false";
} else {
echo "0 does not equal false";
}
// Output: "0 equals false"
// Type juggling
$x = "10";
$y = $x + 5;
echo $y;
// Output: 15
// Inconsistent function naming
$string = "Hello, world!";
$reversed = strrev($string);
echo $reversed;
// Output: "!dlrow ,olleH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment