- in_array: documentation ( source)
<?php
$checkfor = 'test';
$words = array('test','derp','herp');
function noop(){}
for ($i = 1; $i++ < 100000;){
if (in_array($checkfor,$words)) {
noop();
}
}
/*
if (in_array($checkfor,$words)) {
echo "non-flip match";
}
*/