Re: substr?
| From: | Chris Knipe | Date: | Wed, 19 Jun 2002 00:45:07 +0000 |
| Subject: | Re: substr? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102834@lists.php.net to get a copy of this message | ||
> When working with Boolean expressions in this way, deMorgan's laws often
come in handy; these state that:
>
> !a AND !b is the same as !(a OR b)
> !a OR !b is the same as !(a AND b)
>
> Hope this helps!!
I don't know who this deMorgan dude is, but that rule is being written down
in red on a piece of paper that's getting stuck to the bottom of my screen.
It makes perfect sense, and I can start to see where the whole "maths" thing
comes into programming now... It's actually not only a case of logic, but
very much based on maths as well (which I'm afraid isn't something I'm good
at)...
Needless to say, this helped me quite a bit... I'll try and implement it
wisely :-)
--
me