Here is the code I am looking at.
foreach ($header as $idx => $field) { if (stripos($field, \'foo\') !== false) { $cols[\'foo\'] = $idx;
Because if the string matched at position 0, 0 evaluates to false, so you make sure to add the extra '=' so that type is taken in to consideration.
strpos() returns false when NO match is found.
Check out comparison operators.