PHP and Tolstoy

PHP:

$ php -r ‘print var_dump(ip2long(NULL)).”n”;’
int(-1)

$ php -r ‘print var_dump(ip2long(”)).”n”;’
NULL

$ php -r ‘print var_dump(ip2long(‘a’)).”n”;’
bool(false)

Tolstoy: “Happy families are all alike; every unhappy family is unhappy in its own way.”

One thought on “PHP and Tolstoy”

Comments are closed.