Re: PHP Brain Teasers
| From: | Stut | Date: | Tue, 03 Jul 2007 22:14:31 +0000 |
| Subject: | Re: PHP Brain Teasers | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258206@lists.php.net to get a copy of this message | ||
Daniel Brown wrote:
On 7/3/07, Jay Blanchard <jblanchard@pocket.com> wrote:Except that code technically copies all the lawyers and then kills the copy. But that's probably being over-pedantic. -Stut -- http://stut.net/[snip]Another...(way easy)$one = "six"; $other = "half-dozen";Y'think? Heh.[/snip] function esquireEliminate($x){Ha! Nice.... "The first thing we do, let's kill all the lawyers."unset($x);} $lawyers = 1000000000; for($i = 0; $i < $lawyers; $i++){ eliminateEsquire($i); } Shakespeare has his day in code!