- strpos: documentation ( source)
- preg_match: documentation ( source)
<?php
$text='Ţadmethod';
echo 'Preg: ', preg_match('#^.*((?:badmethod)|(?:evilfunction)).*$#s', $text, $matches)?'yes':'no',PHP_EOL;
echo 'Common: ', (strpos($text, 'badmethod') !== false && strpos($text, 'evilfunction') !== false )?'yes':'no' , PHP_EOL;