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: ?php $filter['flags'] = FALSE; if ($allow_fraction) { $filter['flags'] = $filter['flags'] | FILTER_FLAG_ALLOW_FRACTION; } if ($allow_thousand) { $filter['flags'] =

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éssel 14.13-kor Richard

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: ?php $filter['flags'] = FALSE; if ($allow_fraction) { $filter['flags'] = $filter['flags'] |