Answers for "laravel find word in string"

PHP
2

find word in text in laravel

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

$contains = str_contains($string, $blacklistArray);
Posted by: Guest on February-06-2021

Code answers related to "laravel find word in string"

Browse Popular Code Answers by Language