Emmm, Easter Egg Function

While carousing the code base I’ve been alerted of the existence of an interesting function:

public static function the_answer_to_life_the_universe_and_everything() {

    $calculation = sqrt(9) * 12;
    $calculation = pow($calculation, 2);
    $calculation = ($calculation / 4);
    $calculation = ($calculation - 4);
    $calculation = ($calculation / 10);
    $calculation = ($calculation + 10);

    return $calculation;
}

Brilliant. +2 Intelligence, +4 Charisma if you get the reference. Yes, this made my day and yes, it was worthy of a blog post.

This entry was posted in Programming. Bookmark the permalink.

One Response to Emmm, Easter Egg Function