Re: obfuscated php anyone ?

From: Date: Mon, 24 Jul 2000 14:12:21 +0000
Subject: Re: obfuscated php anyone ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7866@lists.php.net to get a copy of this message
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 (#7866) next »