View Single Post
Old 05-18-2009, 10:46 PM   #10 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,324
Thanks: 5
Salathe is on a distinguished road
Default

Code:
class allworknoplay
{
    public function __construct($x,$y)
    {
        $aRange = range(1, 100);
        // Obfuscated string "Hello TalkPHP!"
        $sNote  = pack('H*', '48656C6C6F2054616C6B50485021');
        $aString = sprintf('%s Remember this day %s', $sNote, date('m/d/y h:ia', (array_rand($aRange) * 3600) + time()));
    }
}

Added comment since there's no point having mystery code floating around.
Salathe is offline  
Reply With Quote