strrchr

strrchr

(PHP 4, PHP 5, PHP 7)

strrchrFind the last occurrence of a character in a string

Description

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.

Parameters

haystack

The string to search in

登录查看完整内容