kboyd, Weird PHP question:
Can an object replace itself in memory with a cast of itself to a sub class?
$object is FreezableArray. I invoke ->freeze(). Can it swap itself out with an instance of FrozenArray (inherits from Freezable)?
I'm guessing the answer is no, but I'd be very intrigued if it wasn't.
Add comment