Re: Re[4]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 15:05 +0100, Richard Davey wrote: > Hi Tijnema, > > Wednesday, June 13, 2007, 2:42:28 PM, you wrote: > > > Nice one, but you could also do it like this: > > > > $filter['flags'] = FALSE; > > > if ($allow_fraction) > > { > >$filter['flags'] = $filter['flags'] | FILTER_

Re[4]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Davey
Hi Zoltán, Wednesday, June 13, 2007, 3:09:16 PM, you wrote: > 2007. 06. 13, szerda keltezéssel 15.42-kor Tijnema ezt írta: >> On 6/13/07, Richard Davey <[EMAIL PROTECTED]> wrote: >> > Hi Zoltán, >> > >> > Wednesday, June 13, 2007, 2:21:18 PM, you wrote: >> > >> > > 2007. 06. 13, szerda keltezésse

Re[4]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Davey
Hi Tijnema, Wednesday, June 13, 2007, 2:42:28 PM, you wrote: > Nice one, but you could also do it like this: > $filter['flags'] = FALSE; > if ($allow_fraction) > { >$filter['flags'] = $filter['flags'] | FILTER_FLAG_ALLOW_FRACTION; > } > if ($allow_thousand) > { >$filter['flags'] = $fi