J.P. Larocque (jp_larocque ) wrote,
  • Music: Pet Shop Boys / Release / The Night I Fell In Love

Two sentences on PHP's type system.

From some official PHP documentation:

Returns the name of the class of which object is an instance. Returns FALSE if object is not an object.

On the surface, it's a cute seemingly-contradiction. Sure, the context might clear things up a bit, and you might conclude it was just an unfortunate choice of words. But really, think about that last sentence for a moment.


ADDENDUM: Yes, I was just looking for ways to make snarky remarks on PHP, which makes more sense when you're an "everything is an object" zealot.

Tags: bitching, php, pl
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

  • 0 comments