Determine if a string contains a given substring. (PHP 8+)
Syntax
str_contains(string $haystack, string $needle): boolExample
Enter values below to update the example in real time.
if→str_contains→echo→if (str_contains("Hello World", "World")) {
echo "포함됨";
}