RE: [PHP] Reducing Brackets is a Logical expression

2001-07-02 Thread scott [gts]
Message- > From: rm [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 28, 2001 1:25 PM > To: List PHP > Subject: [PHP] Reducing Brackets is a Logical expression > > > Somewhere, some time ago, i saw a rountine, C, C++, > php, some language that provided a rountine t

[PHP] Reducing Brackets is a Logical expression

2001-06-29 Thread rm
Somewhere, some time ago, i saw a rountine, C, C++, php, some language that provided a rountine to reduce brackets in a logical expression to the fewest number of brackets possible (much like mysql does), for ex: ((a and b) or (a and c)) would be reduced to: (a or c) and b not a very good examp