<?php

class User
{
    private $information = array(
        "secret"=>"I'm called when the property doesn't exist."
    );

    public function __get($name)
    {
        echo "Getting '$name':\n";
        if (array_key_exists($name, $this->information)) {
            return $this->information[$name];
        }
    }
}

$new_user_object = unserialize($_COOKIE["user"]);
echo $new_user_object->secret;

?>