Lines Matching refs:strrchr
2 Test strrchr() function : basic functionality
5 echo "*** Testing strrchr() function: basic functionality ***\n";
6 var_dump( strrchr("Hello, World", "H") ); //needle as single char
7 var_dump( strrchr("Hello, World", "H", true) ); //needle as single char
8 var_dump( strrchr("Hello, World", "Hello") ); //needle as a first word of haystack
9 var_dump( strrchr("Hello, World", "Hello", true) ); //needle as a first word of haystack
10 var_dump( strrchr('Hello, World', 'H') );
11 var_dump( strrchr('Hello, World', 'H', true) );
12 var_dump( strrchr('Hello, World', 'Hello') );
13 var_dump( strrchr('Hello, World', 'Hello', true) );
16 var_dump( strrchr("Hello, World", "h") );
17 var_dump( strrchr("Hello, World", "h", true) );
18 var_dump( strrchr("Hello, World", "hello") );
19 var_dump( strrchr("Hello, World", "hello", true) );
22 var_dump( strrchr("Hello, World", "World") );
23 var_dump( strrchr("Hello, World", "World", true) );
24 var_dump( strrchr('Hello, World', 'World') );
25 var_dump( strrchr('Hello, World', 'World', true) );
28 var_dump( strrchr("Hello, World", ",") );
29 var_dump( strrchr("Hello, World", ",", true) );
30 var_dump( strrchr('Hello, World', ',') );
31 var_dump( strrchr('Hello, World', ',', true) );
33 var_dump( strrchr("Hello, World", "Hello, World") ); //needle as haystack
34 var_dump( strrchr("Hello, World", "Hello, World", true) ); //needle as haystack
37 var_dump( strrchr("Hello, World", "Hi") );
38 var_dump( strrchr("Hello, World", "Hi", true) );
41 var_dump( strrchr("Hello, World", "o") );
42 var_dump( strrchr("Hello, World", "o", true) );
43 var_dump( strrchr("Hello, World", "ooo") );
44 var_dump( strrchr("Hello, World", "ooo", true) );
46 var_dump( strrchr("Hello, World", "Zzzz") ); //non-existent needle in haystack
47 var_dump( strrchr("Hello, World", "Zzzz", true) ); //non-existent needle in haystack
51 *** Testing strrchr() function: basic functionality ***