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", "Hello") ); //needle as a first word of haystack
8 var_dump( strrchr('Hello, World', 'H') );
9 var_dump( strrchr('Hello, World', 'Hello') );
12 var_dump( strrchr("Hello, World", "h") );
13 var_dump( strrchr("Hello, World", "hello") );
16 var_dump( strrchr("Hello, World", "World") );
17 var_dump( strrchr('Hello, World', 'World') );
20 var_dump( strrchr("Hello, World", ",") );
21 var_dump( strrchr('Hello, World', ',') );
23 var_dump( strrchr("Hello, World", "Hello, World") ); //needle as haystack
26 var_dump( strrchr("Hello, World", "Hi") );
29 var_dump( strrchr("Hello, World", "o") );
30 var_dump( strrchr("Hello, World", "ooo") );
32 var_dump( strrchr("Hello, World", "Zzzz") ); //non-existent needle in haystack
36 *** Testing strrchr() function: basic functionality ***