Tag: php

06
Jun

PHP?

After today’s Daily WTF, I discovered this:

griff:~ $ php -a
Interactive mode enabled

<?php
var_dump("php" == 0);
var_dump("php" == true);
var_dump(0 == true);
?>
bool(true)
bool(true)
bool(false)

PHP’s type casting is fantastic, isn’t it.

15
Sep

What’s happening to me?!

I did some work on a CakePHP site earlier today, and I pretty much hated every minute of it. Somehow, I’ve gone from the kind of person who does everything in PHP, to one of those fanatical Ruby on Rails developers. There’s only one thing for it: I must re-write everything I’ve ever done in RoR! OK, maybe I won’t go that far. Yet…