1--TEST--
2Test str_contains() function
3--FILE--
4<?php
5var_dump(str_contains("test string", "test"));
6var_dump(str_contains("test string", "string"));
7var_dump(str_contains("test string", "strin"));
8var_dump(str_contains("test string", "t s"));
9var_dump(str_contains("test string", "g"));
10var_dump(str_contains("te".chr(0)."st", chr(0)));
11var_dump(str_contains("tEst", "test"));
12var_dump(str_contains("teSt", "test"));
13var_dump(str_contains("", ""));
14var_dump(str_contains("a", ""));
15var_dump(str_contains("", "a"));
16var_dump(str_contains("\\\\a", "\\a"));
17?>
18--EXPECT--
19bool(true)
20bool(true)
21bool(true)
22bool(true)
23bool(true)
24bool(true)
25bool(false)
26bool(false)
27bool(true)
28bool(true)
29bool(false)
30bool(true)
31