php Function Iconv_Strrpos
A php function that takes into account Unicode properties to correctly change string to upper- or lower-case. Unlike the standard string functions, which only consider the first letter of each word as capital, this one also takes into consideration the entire text and can therefore correct more than just the case of the first letter. It uses the mbstring extension, which is available as a separate library for some operating systems.
This adapter extends certain string functions from mbstring to take into account Unicode characters. It can be used as an alternative to the standard mbstring functions strtoupper() and strtolower().
Like the standard string function strpos(), iconv_strrpos finds the position of a given substring in a larger string. However, it does so using a different method: it checks the encoding of the string and determines its ordinal value based on this encoding. This makes it more reliable than the standard function, which only knows about ASCII characters and assumes all other characters are encoded in UTF-8.
The function takes four arguments: $haystack, $needle, $offset and $encoding. $haystack is the full string to search within. $needle is the string to find in haystack and $offset is the index in haystack from where to start searching. If $offset is not set, the search starts from the beginning of haystack.
The parameter $encoding is optional. If it is not set, the search assumes that the string may be encoded in iconv's internal encoding. Otherwise, it uses the mbstring's default encoding. If the mbstring extension is not installed, this parameter will be ignored. In such cases, the return value will be FALSE.