Quote:
|
Originally Posted by ENIGMA
if ($something=='AA' || $something=='AB' || ...)
-OR-
strpos('AAABCD', $something)
|
Those two notation are NOT equivalent, Code:
<?php
$something = 'AAA';
if ($something=='AA' || $something=='AB')
{
echo '<li>Found using method 1</li>';
}
else
{
echo '<li>Not found using method 1</li>';
}
if (strpos('AAABCD', $something) !== false)
{
echo '<li>Found using method 2</li>';
} <
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --