Lines Matching refs:strncasecmp
2 Test strncasecmp() function : basic functionality
5 echo "*** Testing strncasecmp() function: basic functionality ***\n";
7 echo "-- Testing strncasecmp() with single quoted string --\n";
8 var_dump( strncasecmp('Hello', 'Hello', 5) ); //expected: int(0)
9 var_dump( strncasecmp('Hello', 'Hi', 5) ); //expected: value < 0
10 var_dump( strncasecmp('Hi', 'Hello', 5) ); //expected: value > 0
12 echo "-- Testing strncasecmp() with double quoted string --\n";
13 var_dump( strncasecmp("Hello", "Hello", 5) ); //expected: int(0)
14 var_dump( strncasecmp("Hello", "Hi", 5) ); //expected: value < 0
15 var_dump( strncasecmp("Hi", "Hello", 5) ); //expected: value > 0
17 echo "-- Testing strncasecmp() with here-doc string --\n";
21 var_dump( strncasecmp($str, "Hello", 5) ); //expected: int(0)
22 var_dump( strncasecmp($str, "Hi", 5) ); //expected: value < 0
23 var_dump( strncasecmp("Hi", $str, 5) ); //expected: value > 0
28 \*\*\* Testing strncasecmp\(\) function: basic functionality \*\*\*
29 -- Testing strncasecmp\(\) with single quoted string --
33 -- Testing strncasecmp\(\) with double quoted string --
37 -- Testing strncasecmp\(\) with here-doc string --