1--TEST--
2stristr() function
3--FILE--
4<?php
5    var_dump(stristr("tEsT sTrInG", "tEsT"));
6    var_dump(stristr("tEsT sTrInG", "stRiNg"));
7    var_dump(stristr("tEsT sTrInG", "stRiN"));
8    var_dump(stristr("tEsT sTrInG", "t S"));
9    var_dump(stristr("tEsT sTrInG", "g"));
10    var_dump(md5(stristr("te".chr(0)."st", chr(0))));
11    var_dump(stristr("", ""));
12    var_dump(stristr("a", ""));
13    var_dump(stristr("", "a"));
14    var_dump(md5(stristr("\\\\a\\", "\\a")));
15    var_dump(stristr("tEsT sTrInG", " "));
16?>
17--EXPECT--
18string(11) "tEsT sTrInG"
19string(6) "sTrInG"
20string(6) "sTrInG"
21string(8) "T sTrInG"
22string(1) "G"
23string(32) "7272696018bdeb2c9a3f8d01fc2a9273"
24string(0) ""
25string(1) "a"
26bool(false)
27string(32) "6ec19f52f0766c463f3bb240f4396913"
28string(7) " sTrInG"
29