$data) { foreach($bbcodes as $bb) { if (stripos($data,$bb)!==false) { return "bbcode $bb in $key"; } } } return false; } } ?>