[nycphp-talk] comparison with zero
David Mintz
dmintz at davidmintz.org
Fri Jul 21 09:13:51 EDT 2006
Perhaps the real lesson is that the switch/case construct uses == rather
than ===
On Fri, 21 Jul 2006, Craig Thomas wrote:
[...]
> Try:
>
> if('one' === 0){
> echo 'one is equal to zero?';
> }
>
> http://www.php.net/manual/en/language.operators.comparison.php
>
>
---
David Mintz
http://davidmintz.org/
Amendment IV
The right of the people to be secure in their
persons, houses, papers, and effects, against
unreasonable searches and seizures, shall not be
violated, and no Warrants shall issue, but upon
probable cause, supported by Oath or affirmation,
and particularly describing the place to be
searched, and the persons or things to be seized.
More information about the talk
mailing list