strrchr

 string strrchr ( string $haystack , mixed $needle ) 

説明

This function returns the portion of haystack which starts at the last occurrence of needle and goes until the end of haystack.

戻り値

This function returns the portion of string, or FALSE if needle is not found.