PKPString::strrpos PHP Method

strrpos() static public method

See also: http://ca.php.net/manual/en/function.strrpos.php
static public strrpos ( $haystack, $needle ) : integer
$haystack string Haystack to search
$needle string Needle to search haystack for
return integer String position of needle in haystack (starting from end of haystack)
    static function strrpos($haystack, $needle)
    {
        if (defined('ENABLE_MBSTRING')) {
            require_once './lib/pkp/lib/phputf8/mbstring/core.php';
        } else {
            require_once './lib/pkp/lib/phputf8/utils/unicode.php';
            require_once './lib/pkp/lib/phputf8/native/core.php';
        }
        return utf8_strrpos($haystack, $needle);
    }