PHP is Dead

A living memorial to a dying language

Days since declared dead: 5,024
Meanwhile, 77% of the web still runs PHP... PHP stands for 'PHP: Hypertext Preprocessor' which stands for 'PHP: Hypertext Preprocessor: Hypertext Preprocessor'... WordPress alone powers 43% of the internet. Yes, that's PHP. PHP was originally called 'Personal Home Page Tools.' Peak 1995. In PHP, 'T_PAAMAYIM_NEKUDOTAYIM' is the error for '::'. It's Hebrew. Because why not. PHP has both array_key_exists() and in_array(), and they take arguments in opposite orders. The PHP elephant mascot is called 'elePHPant.' They were proud of that. MySQL_real_escape_string exists because mysql_escape_string wasn't escaping things... for real.
← Back to the graveyard

PHP type coercion will haunt your dreams

T
type_safety_fan +3400

In PHP: "0" == false, "" == false, BUT "0" != "". The transitive property called — it wants its dignity back.

P
php_apologist +200

Just use === everywhere! Problem solved!

T
type_safety_fan +5600

"Just remember to always use the special operator that does what the normal operator should do by default" is not the flex you think it is.

12,400 pts Source: manual
View original →