Woops, forgot about this.. actually, I have it all working using:
PHP Code:
if (!empty($threadinfo['foousers']))
{
$usernames = preg_split('/( )+/', trim(strtolower($threadinfo['foousers'])), -1, PREG_SPLIT_NO_EMPTY);
foreach ($usernames AS $val)
{
if (strpos(strtolower($bbuserinfo['username']), strtolower($val)) !== false)
{
foo();
}
}
}
This is just modified code from vB's Illegalname check.