15,047
edits
m (→text match) |
|||
| Line 103: | Line 103: | ||
* preg_match... | * preg_match... | ||
* verbose approach: | * verbose approach: {{exclaim}} IF (0 == 'String') always be true?<ref>[http://stackoverflow.com/questions/6843030/why-does-php-consider-0-to-be-equal-to-a-string Why does PHP consider 0 to be equal to a string? - Stack Overflow]</ref> | ||
<pre> | <pre> | ||
if($var =="AAA" OR $var =="BBB" OR $var =="CCC"){ | if($var =="AAA" OR $var =="BBB" OR $var =="CCC"){ | ||