📜  在 laravel 中的文本中查找单词 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:20.346000             🧑  作者: Mango

代码示例1
$string = 'Cassandra is a clean word so it should pass the check';
$blacklistArray = ['ass','ball sack'];

$contains = str_contains($string, $blacklistArray);