match pattern php code example
Example: string match in php
//str_contains ( string $haystack , string $needle ) : bool
if (str_contains('Foo Bar Baz', 'Foo')) {
echo 'Found';
}
//str_contains ( string $haystack , string $needle ) : bool
if (str_contains('Foo Bar Baz', 'Foo')) {
echo 'Found';
}