i dont know the function you're looking for, but read up on
the rules of formal logic, and maybe you can roll your own.
i know that simplification of logical statements (and therefore,
easing the burden of analyzing those statements) is a foundation
of formal logic...
> -----Original 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 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 example, anyone one ever run across
> this code, or have an idea what this operation is
> called, I know there was a name....for the life of me
> I can't remember the name.
>
> any help appreciated
>
> kb
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]