Re: [PHP] parsing select multiple="multiple"
[email protected] (tamouse mailing lists)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAHUC_t9d1v03VPL4JFsdGw6Eig1qp4FuR1YBt+9fb=0c1SnsdA@mail.gmail.com> |
On Thu, Feb 21, 2013 at 8:46 AM, Jim Giner <[email protected]> wrote: > >> >> I *have* heard claims that something like this is preferrable, though: >> >> if (FALSE === $variable) >> > I believe I read a comment somewhere once that writing your IF statements > that way helped to trigger an error message when the coder forgot to use the > double equal sign (==) in the statement. I haven't adopted it yet, but I > think that's the sole reason for it. Basically you can't make an assignment > (=) to a constant or some non-variable target. That sounds like a reasonable explanation to me.