Re: Re: PHP Brain Teasers
| From: | Robert Cummings | Date: | Fri, 13 Jul 2007 12:56:42 +0000 |
| Subject: | Re: Re: PHP Brain Teasers | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258780@lists.php.net to get a copy of this message | ||
On Fri, 2007-07-13 at 01:59 -0500, Richard Lynch wrote:
> On Thu, July 12, 2007 10:20 am, Daniel Brown wrote:
> > On 7/12/07, Robert Cummings <robert@interjinn.com> wrote:
> >> Geeee... must be nice, some of us had to toil 18 hours a day
> >> sweeping
> >> chimneys!
> >>
> >> ;)
> >>
> >> Cheers,
> >> Rob.
> >
> > What do you mean "us"? Weren't you born before they invented the
> > chimney?
>
> <?php
> $when = array('uphill', 'in', 'the', 'snow');
> $age = time() - mktime(0, 0, 0, 0, 0, mt_rand(10, 50);
It's missing a bracket after mt_rand( :)
But more importantly there's an omission of the concept of "both
ways" ;)
Cheers,
Rob.
--
...........................................................
SwarmBuy.com - http://www.swarmbuy.com
Leveraging the buying power of the masses!
...........................................................