2 /* Prototype : string strrchr(string $haystack, string $needle);
3 * Description: Finds the last occurrence of a character in a string.
4 * Source code: ext/standard/string.c
7 echo "*** Testing strrchr() function: error conditions ***\n";
12 echo "\n-- Testing strrchr() function with Zero arguments --";
13 var_dump( strrchr() );
15 echo "\n-- Testing strrchr() function with less than expected no. of arguments --";
16 var_dump( strrchr($haystack) );
18 echo "\n-- Testing strrchr() function with more than expected no. of arguments --";
19 var_dump( strrchr($haystack, $needle, $extra_arg) );