RE: [PHP] obfuscated php anyone ?

From: Date: Tue, 25 Jul 2000 02:19:13 +0000
Subject: RE: [PHP] obfuscated php anyone ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7867@lists.php.net to get a copy of this message
function DaysInMonth($b, $x) { return 31 - ( ( ( $b - ( ( $b < 8 ) ? 1 : 0 ) ) % 2 ) + ( ( $b == 2 ) ? ( ( ! ( $x % ( ( ! ( $x % 100 ) ) ? 400 : 4 ) ) ) ? 1 : 2 ) : 0 ) ) ; } hehe John -----Original Message----- From: mohrt@ispi.net [mailto:mohrt@ispi.net]On Behalf Of Monte Ohrt Sent: Monday, July 24, 2000 10:12 AM To: John Coggeshall Cc: php-general@lists.php.net Subject: Re: [PHP] obfuscated php anyone ? Now just make the variable names non-sensible and put that code in the shape of a calendar month, and it would be complete! ;-) John Coggeshall wrote: > > Here's a little obfuscated code for you... return number of days in a month > (deals with leap years, etc) > > function DaysInMonth($month,$year){ > return > 31-((($month-(($month<8)?1:0))%2)+(($month==2)?((!($year%((!($year%100))?400 > :4)))?1:2):0)); > } >

« previous php.general (#7867) next »