dustin.web/content/blog/in-php-false-is-true.md

25 lines
389 B
Markdown

+++
title = 'In PHP, false is true!'
date = 2011-12-14T00:20:00Z
+++
One of the many reasons we all need to move on:
```php
<?php
$test = false;
if ($test == 0) {
$test = 0;
if ($test == "php sucks") {
$test = "php sucks";
if ($test == true) {
print "false == true";
}
}
}
?>
```
Yes, this actually does what you think it does. Try it!