Re: Re: PHP Brain Teasers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2007-07-03 at 21:41 +0200, Tijnema wrote:
> On 7/3/07, Robert Cummings <robert@xxxxxxxxxxxxx> wrote:
> > On Tue, 2007-07-03 at 15:26 -0400, Robert Cummings wrote:
> > > On Tue, 2007-07-03 at 20:18 +0100, Colin Guthrie wrote:
> > > > Jay Blanchard wrote:
> > > > > [snip]
> > > > > if($x == 0.01 || $x == 1.0){
> > > > >    $y = "in";
> > > > > }
> > > > > [/snip]
> > > > >
> > > > > Anyone?
> > > >
> > > >
> > > > I'm struggling.....
> > >
> > > I'm not getting any lightbulbs either :/
> >
> > Best I can think currently is "In dollars and cents".
> >
> > Cheers,
> > Rob.
> 
> I would write that as "In cents or dollars".

The union formed by the or operator creates a set that includes both. As
such when describing the set one would use "and".

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux