Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (10 sloc) 0.234 kB
<?php
/**
* @param string $string 文字列
* @param array $keywords
* @return bool
*/
function detect_taboo_words($string, $keywords){
$keywords = implode('|', $keywords);
return preg_match("/($keywords)/imu", $string) > 0;
}
Jump to Line
Something went wrong with that request. Please try again.